- Grab the
*.json
files from this folder: https://github.com/klimeryk/recalendar.js/tree/master/src/locales/en - They contain the strings that need to be translated to your language.
- The format is simple:
"key": "value"
. Key should not be translated, onlyvalue
. - Check for existing issues for your language or open a new one and share the files there.
- Copy the
en
folder from https://github.com/klimeryk/recalendar.js/tree/master/src/locales/ and rename it to the appropriate locale. It has to match the locale that day.js supports. The list is available here. - Translate the strings in each
*.json
file, as described in the above section. - Add your language to the English
app.json
file,language
section. Add it as you'd write it in your language. See the existing examples there. So, for the Polish language I'd putPolski
, notPolish
. This follows best practices for language selectors. - You should now be able to see the language in your local, development version.
- Check the console for any warnings or errors if the language is not visible or not working.