Browse Source

多语言文本

baxi 2 weeks ago
parent
commit
d4e48c3af9

+ 9 - 0
assets/scripts/i18n/en.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.2.0",
+  "importer": "directory",
+  "imported": true,
+  "uuid": "0adef723-a71b-488c-968b-2f03482a30c5",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 0 - 28
assets/scripts/i18n/en.ts

@@ -1,28 +0,0 @@
-
-export const en = {
-    launch: {
-        check_app_version: "正在检查更新",
-        check_res_version: "正在检查更新",
-        error_retry: "Resource update failed, retrying {0}/{1}",
-        update_retry: "资源更新失败,正在重试({0})",
-        update_finished: "资源更新完成",
-        updating_res: "正在更新资源 {0}/{1}",
-        preload_res: "预加载资源",
-        res_load_fail: "加载失败,是否重试",
-        retry: "重试",
-        open_lobby: "正在进入大厅",
-        finished: "启动完成",
-        failed: "初始化失败,请重试"
-    },
-    home: {
-        logout: {
-            title: "Log Out",
-            content: "Are you sure you want to log out?"
-        }
-    },
-    dialog: {
-        tips: "TIPS",
-        confirm: "Confirm",
-        cancel: "Cancel"
-    }
-}

+ 27 - 0
assets/scripts/i18n/en/en1.ts

@@ -0,0 +1,27 @@
+export const launch = {
+    check_app_version: "正在检查更新",
+    check_res_version: "正在检查更新",
+    error_retry: "Resource update failed, retrying {0}/{1}",
+    update_retry: "资源更新失败,正在重试({0})",
+    update_finished: "资源更新完成",
+    updating_res: "正在更新资源 {0}/{1}",
+    preload_res: "预加载资源",
+    res_load_fail: "加载失败,是否重试",
+    retry: "重试",
+    open_lobby: "正在进入大厅",
+    finished: "启动完成",
+    failed: "初始化失败,请重试"
+};
+
+export const home = {
+    logout: {
+        title: "Log Out",
+        content: "Are you sure you want to log out?"
+    }
+};
+
+export const dialog = {
+    tips: "TIPS",
+    confirm: "Confirm",
+    cancel: "Cancel"
+}

+ 1 - 1
assets/scripts/i18n/en.ts.meta → assets/scripts/i18n/en/en1.ts.meta

@@ -2,7 +2,7 @@
   "ver": "4.0.24",
   "importer": "typescript",
   "imported": true,
-  "uuid": "d36c9b2d-9233-49ee-ad87-18d127cac875",
+  "uuid": "b8d9e07f-7650-407b-bf6f-9a052fa6b217",
   "files": [],
   "subMetas": {},
   "userData": {}

+ 3 - 0
assets/scripts/i18n/en/en2.ts

@@ -0,0 +1,3 @@
+export const test = {
+
+}

+ 9 - 0
assets/scripts/i18n/en/en2.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "cdaf48c2-61bf-4ae4-b66c-378a0f68cdda",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 2 - 0
assets/scripts/i18n/en/index.ts

@@ -0,0 +1,2 @@
+export * from './en1';
+export * from './en2';

+ 9 - 0
assets/scripts/i18n/en/index.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "ca51f49e-e975-451c-ab7a-48ea2ff53d9f",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 1 - 1
assets/scripts/i18n/index.ts

@@ -1,4 +1,4 @@
-import { en } from "./en";
+import * as en from './en';
 
 type I18nParams = readonly unknown[] | Record<string, unknown>;