From e796324240b3d1cc6f81419e666bc5164b735d56 Mon Sep 17 00:00:00 2001 From: Sarina Date: Sun, 15 Oct 2023 06:07:42 +0330 Subject: [PATCH] add: setup inlang translation --- assets/translations/en.json | 4 ++++ project.inlang.json | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 assets/translations/en.json create mode 100644 project.inlang.json diff --git a/assets/translations/en.json b/assets/translations/en.json new file mode 100644 index 00000000..9cc21234 --- /dev/null +++ b/assets/translations/en.json @@ -0,0 +1,4 @@ +{ + "appName": "Hiddify Next", + "Error": "Error" +} diff --git a/project.inlang.json b/project.inlang.json new file mode 100644 index 00000000..9b62c6d6 --- /dev/null +++ b/project.inlang.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://inlang.com/schema/project-settings", + "sourceLanguageTag": "en", + "languageTags": [ + "en", + "fa", + "ru-RU", + "zh-CN" + ], + "modules": [ + "https://cdn.jsdelivr.net/npm/@inlang/plugin-i18next@4/dist/index.js", + "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@1/dist/index.js", + "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-identical-pattern@1/dist/index.js", + "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@1/dist/index.js", + "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@1/dist/index.js" + ], + "plugin.inlang.i18next": { + "pathPattern": "./assets/translations/{languageTag}.json", + "variableReferencePattern": [ + "@:" + ] + } +} +