@properly/localization
v1.0.1
Published
[See root monorepo for setup instructions](../../README.md)
Downloads
2
Readme
Properly Localization package
See root monorepo for setup instructions
This is where all common localization text between properly web application live
We will need to implement a library to lazy load required strings in the future
Integration with OneSky
To download the latest strings from OneSky we have a node script.
This will download all the languages from OneSky and override them. Note it will merge any new strings that have been added to en.yml which will need to be uploaded separately once they are ready. Any existing strings that have been updated in en.yml will be wiped. If you have already recently run a download and are happy to OVERRIDE the OneSky translations copys then we can force the upload.
- Download
npm run download-languages
- Upload (new strings)
npm run download-languages -- -upload
- Force Upload (edited strings)
npm run download-languages -- -upload -force
Follow this process when uploading:
- Run the upload command ensuring its success
- Stash your changes
- Run the download command until you see your reflected changes (it is not real time)
- Commit the changes when the download command is successful