electron-about-window icon indicating copy to clipboard operation
electron-about-window copied to clipboard

Localisation

Open simonmeusel opened this issue 7 years ago • 2 comments

Can I somehow pass localised string (for example for found bug?)

But this should probably be added as a feature for this in general

😄

simonmeusel avatar Nov 14 '17 18:11 simonmeusel

It would be nice. Do you have any suggestion of i18n library? I haven't tried i18n in JS.

rhysd avatar Nov 18 '17 14:11 rhysd

In my app I used https://github.com/electron/electron/blob/master/docs/api/app.md#appgetlocale to get the language, and then used different JSON files, on for each supported language. (and a fallback language)

See https://github.com/simonmeusel/Quotator

simonmeusel avatar Nov 18 '17 16:11 simonmeusel