aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRémy Raes <contact@remyraes.com>2023-03-30 17:12:44 +0200
committerGitHub <noreply@github.com>2023-03-30 17:12:44 +0200
commit2852649d72355191c57eeb106b9f0f9f99577579 (patch)
tree3d44094ee3a077aa3d413ef167e8f66d2a8ec05a /docs
parentbc415761c8733fddbd8d95a433999b943c2239aa (diff)
downloadFlightCore-2852649d72355191c57eeb106b9f0f9f99577579.tar.gz
FlightCore-2852649d72355191c57eeb106b9f0f9f99577579.zip
refactor: Convert localization files from TypeScript to JSON format (#253)
* refactor: convert localization files from TypeScript to JSON format * docs: update i18n documentation
Diffstat (limited to 'docs')
-rw-r--r--docs/DEVELOPMENT.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md
index 94c1bac7..ce6ba010 100644
--- a/docs/DEVELOPMENT.md
+++ b/docs/DEVELOPMENT.md
@@ -208,9 +208,9 @@ For FlightCore to be used by the largest number, its interface is translated in
Localization files are located in `src-vue/src/i18n/lang`.
-To add a new language, you have to create associated file, *e.g. `src-vue/src/i18n/lang/de.ts`*, and import it in the i18n application object in `main.ts`:
+To add a new language, you have to create associated file, *e.g. `src-vue/src/i18n/lang/de.json`*, and import it in the i18n application object in `main.ts`:
```javascript
-import de from "./i18n/lang/de";
+import de from "./i18n/lang/de.json";
export const i18n = createI18n({
locale: 'en',
@@ -269,11 +269,11 @@ i18n.global.tc('notification.game_folder.new.text');
It is possible to inject variables into translations:
-```javascript
-channels: {
- release: {
- component: {
- text: "Switched release channel to {canal}."
+```json
+"channels": {
+ "release": {
+ "component": {
+ "text": "Switched release channel to {canal}."
}
}
}