aboutsummaryrefslogtreecommitdiff
path: root/src/lang.js
AgeCommit message (Collapse)Author
2022-01-17documented: index.js, cli.js, lang.js app/lang.js0neGal
2021-12-29fallback to localizations0neGal
If a message is not localized it'll default back to English, instead of just giving back the string...
2021-12-28if no lang is set, use "en"0neGal
By error I forgot to include this check... I also added in the ability for it to look for a lang file without the extra locale info on the end, i.e if "en-GB" is not found it'll try "en"
2021-12-28attempt at making localization0neGal
This may or may not be how we actually do localization in the future, however for now this seems doable. I will obviously need to look at how we detect the language, as I think instead of relying on names like "en-US" just have "en", so we don't have to symlink various editions of English to the same file. But for now this is a draft, and the important part of this is rather how the underlying localization works.