feat: load dev locale files

This commit is contained in:
Nick
2019-02-09 12:32:23 -05:00
parent 466c05f8b2
commit a8c7710412
5 changed files with 72 additions and 3 deletions

20
server/locales/README.md Normal file
View File

@@ -0,0 +1,20 @@
## IMPORTANT
Localization files are not stored into files!
Contact us on Gitter to request access to the translation web service: https://gitter.im/Requarks/wiki
## Development Mode
If you need to add new keys and test them live, simply create a {LANG}.yml file in this folder containing the values you want to test. e.g.:
### en.yml
```yml
admin:
api.title: 'API Access'
auth.title: 'Authentication'
```
The official localization keys will still be loaded first, but your local files will overwrite any existing keys (and add new ones).
Note that you must restart Wiki.js to load any changes made to the files, which happens automatically on save when in dev mode.