rhysd / electron-about-window

'About This App' mini-window for Electron apps
https://www.npmjs.com/package/about-window
MIT License
414 stars 45 forks source link

Localisation #14

Open simonmeusel opened 7 years ago

simonmeusel commented 7 years ago

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 7 years ago

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

simonmeusel commented 7 years ago

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