New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP - Localization / l10n #40
Conversation
…efault, FR second (TODO), currently menu only (other UI TODO)
…dimentary french translation (will need review)
… restart the app)
…nstant language switch in other components
const browseForFileOrFolder2 = browseForFileOrFolderArray[1].trim(); | ||
const browseForFileOrFolder3 = browseForFileOrFolderArray[2].trim(); | ||
const browseForFileOrFolder4 = browseForFileOrFolderArray[3].trim(); | ||
const browseForFileOrFolder5 = browseForFileOrFolderArray[4].trim(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ugly as hell, but this works fine for a first shot. TODO: regexp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PS: i18next
supports templates of course...but I haven't looked into breaking-down this particular splash message into a template-compatible form.
TODO:
|
Related Ace "core" PR: daisy/ace#223 |
…facts from the filesystem (testing non-deployed packages, not yet staged for production but ready for testing app builds)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just checked on French macOS to suggest more accurate translations (sorry for the extra work 😉, I should have done it in the first place!)
Thank you for your l10n peer review Romain! Tedious work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
WIP
Also fixes issue #14
electron-store
(JSON)en
(generic English) as default / fallback language.fr
(generic French) is provided (needs reviewing).i18next
to handle the JSON resources (language catalogs), simple starter API with powerful extensions: https://www.i18next.com