From 1b736f7b5923ac218469ff60cee5adc50709900b Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 14 Jul 2019 17:53:09 +0200 Subject: [PATCH] Update translation hint in README Signed-off-by: Knut Ahlers --- README.md | 4 +++- src/langs/langs.js | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dce4953..b3dbebe 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,8 @@ For a better setup you can choose the backend which is used to store the secrets ## Localize to your own language -If you want to help translating the application to your own language please download the [`en-us.all.json`](https://github.com/Luzifer/ots/blob/master/frontend/locale/en-us.all.json) file from this repository and translate the `others` strings inside. Afterwards please [open an issue](https://github.com/Luzifer/ots/issues/new) and attach your translation including the information which language you translated the strings into. Of course you also could open a pull-request to add the new file to the `frontend/locale` folder. +If you want to help translating the application to your own language please download the [`en.json`](https://github.com/Luzifer/ots/blob/master/src/langs/en.json) file from this repository and translate the strings inside. Afterwards please [open an issue](https://github.com/Luzifer/ots/issues/new) and attach your translation including the information which language you translated the strings into. + +Of course you also could open a pull-request to add the new file to the `src/langs` folder. In this case please also edit the `langs.js` file and add your translation. Same goes with when you're finding translation errors: Just open an issue and let me know! diff --git a/src/langs/langs.js b/src/langs/langs.js index 56c824a..ae6526e 100644 --- a/src/langs/langs.js +++ b/src/langs/langs.js @@ -1,7 +1,7 @@ -import lang_de from './de.json' -import lang_en from './en.json' +import de from './de.json' +import en from './en.json' export default { - de: lang_de, - en:lang_en, + de, + en, }