rhysd/electron-about-window

Localisation

simonmeusel opened this issue ยท 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

๐Ÿ˜„

rhysd commented

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

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