genshin-text 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +53 -0
- package/dist/ChineseSimplified-D4GyCg-y.js +21 -0
- package/dist/ChineseTraditional-C1bTcZ6P.js +21 -0
- package/dist/French-aGftPEej.js +21 -0
- package/dist/German-d2m3TE4j.js +21 -0
- package/dist/Indonesian-BZn6A8oC.js +21 -0
- package/dist/Italian-BerJr7hE.js +21 -0
- package/dist/Japanese-DfmnqSu5.js +21 -0
- package/dist/Korean-DFUUjD0j.js +21 -0
- package/dist/Portuguese-DJVA9ljC.js +21 -0
- package/dist/Russian-COO1sWFU.js +21 -0
- package/dist/Spanish-BKBrFCFE.js +21 -0
- package/dist/Thai-DweHiXVy.js +21 -0
- package/dist/Turkish-CGPRyFNv.js +21 -0
- package/dist/Vietnamese-PjRH0I77.js +21 -0
- package/dist/index.d.ts +75 -0
- package/dist/index.js +160 -0
- package/package.json +61 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2020-present Jimmy Chen
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# genshin-text
|
|
2
|
+
|
|
3
|
+
[![Apache-2.0 licensed][badge-license]][url-license]
|
|
4
|
+
[![NPM version][badge-npm-version]][url-npm]
|
|
5
|
+
[![NPM downloads][badge-npm-downloads]][url-npm]
|
|
6
|
+
[![NPM Unpacked Size (with version)][badge-npm-unpacked-size]][url-npm]
|
|
7
|
+
|
|
8
|
+
Genshin Impact's own text in its fifteen languages, as an unofficial, non-commercial fan work and not affiliated with HoYoverse:
|
|
9
|
+
|
|
10
|
+
- the game's languages, each with its BCP-47 tag and its own name for itself;
|
|
11
|
+
- `matchGameLanguage`, the game language nearest a reader's browser locale or `Accept-Language` header;
|
|
12
|
+
- every string the package references, looked up by the game's own text id, with English bundled and every other language a chunk loaded on first use.
|
|
13
|
+
|
|
14
|
+
Nothing is translated by hand: each string is the game's own, in the game's own translation.
|
|
15
|
+
|
|
16
|
+
## Table of Contents
|
|
17
|
+
|
|
18
|
+
- 🚀 [Getting Started](#getting-started)
|
|
19
|
+
- 📖 [Documentation](#documentation)
|
|
20
|
+
- ⚖️ [License](#license)
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## <a name="getting-started">🚀 Getting Started</a>
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
pnpm i genshin-text
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Pick the reader's language, load its text once, and index it by key:
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
import { GameTextKey, GameTextLoaderMap, matchGameLanguage } from "genshin-text";
|
|
34
|
+
|
|
35
|
+
const language = matchGameLanguage(navigator.languages);
|
|
36
|
+
const gameText = await GameTextLoaderMap[language]();
|
|
37
|
+
console.log(gameText[GameTextKey.Loading]);
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## <a name="documentation">📖 Documentation</a>
|
|
41
|
+
|
|
42
|
+
We highly recommend you take a look at the [documentation](https://esposter.com/docs/api/modules/genshin-text.html) to level up. Where the text comes from and how a new string is referenced is its [docs page](https://esposter.com/docs/genshin/game-text).
|
|
43
|
+
|
|
44
|
+
## <a name="license">⚖️ License</a>
|
|
45
|
+
|
|
46
|
+
This project is licensed under the [Apache-2.0 license](https://github.com/Esposter/Esposter/blob/main/LICENSE).
|
|
47
|
+
|
|
48
|
+
[badge-license]: https://img.shields.io/github/license/Esposter/Esposter.svg?color=blue
|
|
49
|
+
[url-license]: https://github.com/Esposter/Esposter/blob/main/LICENSE
|
|
50
|
+
[badge-npm-version]: https://img.shields.io/npm/v/genshin-text/latest?color=brightgreen
|
|
51
|
+
[url-npm]: https://www.npmjs.com/package/genshin-text/v/latest
|
|
52
|
+
[badge-npm-unpacked-size]: https://img.shields.io/npm/unpacked-size/genshin-text/latest?label=npm
|
|
53
|
+
[badge-npm-downloads]: https://img.shields.io/npm/dm/genshin-text.svg
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/generated/text/ChineseSimplified.json
|
|
2
|
+
var ChineseSimplified_default = {
|
|
3
|
+
"684850635": "有极少数的人在观看一些视觉影像时可能会突然癫痫发作,这些影像包括电子游戏中出现的闪光或图形。在进行电子游戏时,这些人可能会出现癫痫症状。甚至连不具有癫痫史的人,也可能在进行电子游戏时,出现类似癫痫症状。如果您或您的家人有癫痫史,请在进行游戏之前先与医生咨询。如果您在游玩电子游戏时出现以下症状,包括眼睛疼痛、视觉异常、偏头痛、痉挛或意识障碍(诸如昏迷)等,请立即中止游戏,并且请您于再次进行本游戏之前咨询您的医生。\n\n除上述症状外,当您感到头痛、头晕眼花、恶心想吐或类似晕车症状时,以及当身体的某些部位感到不舒服或疼痛时,请立即中止游戏。若在中止游戏后,症状仍没有减退,请立即寻求医生的诊疗。",
|
|
4
|
+
"796445964": "准备下载资源",
|
|
5
|
+
"1102014722": "正在加载游戏…",
|
|
6
|
+
"1128933734": "准备加载数据",
|
|
7
|
+
"1285204118": "检查更新中…",
|
|
8
|
+
"1737243758": "警告:游戏前详阅",
|
|
9
|
+
"2272745789": "用户",
|
|
10
|
+
"3231160485": "抵制不良游戏,拒绝盗版游戏,注意自我保护,谨防受骗上当,适度游戏益脑,沉迷游戏伤身,合理安排时间,享受健康生活。\n审批文号:国新出审[2020]1407号 ISBN 978-7-498-07852-0 出版单位:华东师范大学电子音像出版社有限公司\n著作权人:上海米哈游天命科技有限公司\n本公司积极履行《网络游戏行业防沉迷自律公约》",
|
|
11
|
+
"3535917252": "点击进入",
|
|
12
|
+
"3574932777": "开始游戏",
|
|
13
|
+
INFORMATION_AVATAR_BIRTHDAY: "生日",
|
|
14
|
+
LANGUAGE_WINDOWS_TITLENAME: "原神",
|
|
15
|
+
ONLINE_DUNGEON_GUEST_IS_READY: "已准备",
|
|
16
|
+
UI_BEYOND_RECOMMEND_EMPTY_LOADING: "加载中",
|
|
17
|
+
UI_TEXT_QUEST_GUIDE_LABEL: "旅行者",
|
|
18
|
+
tips_enter_game: "%s,欢迎进入游戏"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { ChineseSimplified_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/generated/text/ChineseTraditional.json
|
|
2
|
+
var ChineseTraditional_default = {
|
|
3
|
+
"684850635": "有極少數的人在觀看一些視覺影像時可能會突然癲癇發作,這些影像包括電子遊戲中出現的閃光或圖形。在進行電子遊戲時,這些人可能會出現癲癇症狀。甚至連不具有癲癇史的人,也可能在進行電子遊戲時,出現類似癲癇症狀。如果您或您的家人有癲癇史,請在進行遊戲之前先與醫生諮詢。如果您在遊玩電子遊戲時出現以下症狀,包括眼睛疼痛、視覺異常、偏頭痛、痙攣或意識障礙(諸如昏迷)等,請立即終止遊戲,並且請您於再次進行本遊戲之前諮詢您的醫生。\n\n除上述症狀外,當您感到頭痛、頭暈眼花、噁心想吐或類似暈車症狀時,以及當身體的某些部位感到不舒服或疼痛時,請立即中止遊戲。若在中止遊戲後,症狀仍沒有減緩,請立即尋求醫生的診療。",
|
|
4
|
+
"796445964": "準備下載資源",
|
|
5
|
+
"1102014722": "正在載入遊戲…",
|
|
6
|
+
"1128933734": "準備載入數據",
|
|
7
|
+
"1285204118": "檢查更新中…",
|
|
8
|
+
"1737243758": "警告:遊戲前詳閱",
|
|
9
|
+
"2272745789": "使用者",
|
|
10
|
+
"3231160485": "抵制不良遊戲,拒絕盜版遊戲,注意自我保護,謹防受騙上當,適度遊戲益腦,沉迷遊戲傷身,合理安排時間,享受健康生活。\n審批文號:國新出審[2020]1407號 ISBN 978-7-498-07852-0 出版單位:華東師範大學電子音像出版社有限公司\n著作權人:上海米哈遊天命科技有限公司\n本公司積極履行《網路遊戲行業防沉迷自律公約》",
|
|
11
|
+
"3535917252": "點擊任意地方進入",
|
|
12
|
+
"3574932777": "開始遊戲",
|
|
13
|
+
INFORMATION_AVATAR_BIRTHDAY: "生日",
|
|
14
|
+
LANGUAGE_WINDOWS_TITLENAME: "原神",
|
|
15
|
+
ONLINE_DUNGEON_GUEST_IS_READY: "已準備",
|
|
16
|
+
UI_BEYOND_RECOMMEND_EMPTY_LOADING: "載入中",
|
|
17
|
+
UI_TEXT_QUEST_GUIDE_LABEL: "旅行者",
|
|
18
|
+
tips_enter_game: "%s,歡迎進入遊戲"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { ChineseTraditional_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/generated/text/French.json
|
|
2
|
+
var French_default = {
|
|
3
|
+
"684850635": "Certaines personnes peuvent être sujettes à des crises à la vue de certaines images, notamment des lumières clignotantes ou certains éléments graphiques d'un jeu vidéo. Ce phénomène peut s'apparenter à un symptôme d'épilepsie et peut apparaître même si le sujet n'a pas d'antécédent médical ou n'a jamais été confronté à une crise d'épilepsie. Si vous avez déjà présenté des symptômes liés à l'épilepsie, veuillez consulter votre médecin avant toute utilisation du jeu. Si vous présentez les symptômes suivants : douleurs oculaires, migraines, spasmes ou perte de conscience, veuillez cesser IMMÉDIATEMENT toute utilisation du jeu et consultez votre médecin avant réutilisation.\n\nSi vous présentez également ces symptômes : maux de tête, vertiges, nausées et autres symptômes de mal des transports, ou si vous ressentez de l'inconfort ou de la douleur dans n'importe quelle partie de votre corps, veuillez cesser IMMÉDIATEMENT toute utilisation du jeu et consultez un médecin si le problème persiste.",
|
|
4
|
+
"796445964": "Préparation du téléchargement des ressources...",
|
|
5
|
+
"1102014722": "Chargement...",
|
|
6
|
+
"1128933734": "Préparation du chargement des données...",
|
|
7
|
+
"1285204118": "Vérification des mises à jour...",
|
|
8
|
+
"1737243758": "À LIRE AVANT TOUTE UTILISATION DU JEU",
|
|
9
|
+
"2272745789": "Utilisateur",
|
|
10
|
+
"3231160485": "抵制不良游戏,拒绝盗版游戏,注意自我保护,谨防受骗上当,适度游戏益脑,沉迷游戏伤身,合理安排时间,享受健康生活。\n审批文号:国新出审[2020]1407号 ISBN 978-7-498-07852-0 出版单位:华东师范大学电子音像出版社有限公司\n著作权人:上海米哈游天命科技有限公司\n本公司积极履行《网络游戏行业防沉迷自律公约》",
|
|
11
|
+
"3535917252": "Cliquez pour lancer le jeu",
|
|
12
|
+
"3574932777": "Démarrer le jeu",
|
|
13
|
+
INFORMATION_AVATAR_BIRTHDAY: "Anniversaire",
|
|
14
|
+
LANGUAGE_WINDOWS_TITLENAME: "Genshin Impact",
|
|
15
|
+
ONLINE_DUNGEON_GUEST_IS_READY: "Déjà prêt",
|
|
16
|
+
UI_BEYOND_RECOMMEND_EMPTY_LOADING: "Chargement...",
|
|
17
|
+
UI_TEXT_QUEST_GUIDE_LABEL: "{M#Voyageur}{F#Voyageuse}",
|
|
18
|
+
tips_enter_game: "Bienvenue, %s."
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { French_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/generated/text/German.json
|
|
2
|
+
var German_default = {
|
|
3
|
+
"684850635": "Bei einem sehr geringen Teil der Menschen, die visuellen Eindrücken ausgesetzt sind, kann es zu unerwarteten epileptischen Anfällen kommen. Zu diesen Sinneswahrnehmungen gehören Lichtblitze und Bilder, die in Videospielen auftauchen können. Beim Spielen von Videospielen können diese Menschen epileptische Anfälle bekommen. Selbst Menschen ohne entsprechende Krankengeschichte können beim Spielen von Videospielen epileptische Anfälle bekommen. Bei einer entsprechenden Krankengeschichte von dir oder deiner Familie solltest du vor dem Spielen unbedingt einen Arzt konsultieren. Treten während des Spielens Symptome wie Augenschmerzen, Probleme mit dem Sehvermögen, Migräne, Krämpfe, Beeinträchtigung der Wahrnehmung (wie Verlieren des Bewusstseins) u. a. auf, ist das Spielen sofort zu unterlassen. In diesem Fall solltest du vor dem erneuten Spielen deinen Arzt konsultieren.\nWenn du diese Symptome nicht hast, dafür aber Kopfschmerzen hast, dir schwindlig ist, schlecht ist oder du dich übergeben musst, oder auch, wenn dir Teile deines Körpers wehtun oder sich unangenehm anfühlen, solltest du das Spielen sofort beenden. Verschwinden diese Symptome nach dem Beenden des Spielens nicht, solltest du sofort einen Arzt konsultieren.",
|
|
4
|
+
"796445964": "Herunterzuladende Daten werden vorbereitet",
|
|
5
|
+
"1102014722": "Spiel wird geladen ...",
|
|
6
|
+
"1128933734": "Zu ladende Daten werden vorbereitet",
|
|
7
|
+
"1285204118": "Aktualisierungen werden gesucht ...",
|
|
8
|
+
"1737243758": "Warnung: Vor dem Spielen unbedingt lesen!",
|
|
9
|
+
"2272745789": "Nutzer",
|
|
10
|
+
"3231160485": "抵制不良游戏,拒绝盗版游戏,注意自我保护,谨防受骗上当,适度游戏益脑,沉迷游戏伤身,合理安排时间,享受健康生活。\n审批文号:国新出审[2020]1407号 ISBN 978-7-498-07852-0 出版单位:华东师范大学电子音像出版社有限公司\n著作权人:上海米哈游天命科技有限公司\n本公司积极履行《网络游戏行业防沉迷自律公约》",
|
|
11
|
+
"3535917252": "Zum Start klicken",
|
|
12
|
+
"3574932777": "Spiel starten",
|
|
13
|
+
INFORMATION_AVATAR_BIRTHDAY: "Geburtstag",
|
|
14
|
+
LANGUAGE_WINDOWS_TITLENAME: "Genshin Impact",
|
|
15
|
+
ONLINE_DUNGEON_GUEST_IS_READY: "Bereit",
|
|
16
|
+
UI_BEYOND_RECOMMEND_EMPTY_LOADING: "Wird geladen ...",
|
|
17
|
+
UI_TEXT_QUEST_GUIDE_LABEL: "{F#Reisende}{M#Reisender}",
|
|
18
|
+
tips_enter_game: "Willkommen, %s"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { German_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/generated/text/Indonesian.json
|
|
2
|
+
var Indonesian_default = {
|
|
3
|
+
"684850635": "Sebagian kecil orang dapat mengalami kejang-kejang saat melihat beberapa jenis gambar visual tertentu, termasuk cahaya atau grafik di dalam video game. Saat bermain video game, orang-orang ini dapat mengalami gejala epilepsi. Orang yang sebelumnya tidak pernah mengalami gejala epilepsi juga memiliki kemungkinan mengalami gejala serupa saat bermain video game. Jika kamu atau anggota keluargamu memiliki riwayat epilepsi, mohon konsultasikan dengan ahli kesehatan sebelum bermain game. Jika kamu mengalami gejala-gejala berikut saat bermain game, seperti nyeri mata, gangguan penglihatan, migrain, kejang-kejang atau gangguan kesadaran (seperti koma), mohon segera berhenti bermain dan konsultasikan dengan ahli kesehatan sebelum melanjutkan permainan.\n\nSelain gejala di atas, jika kamu mengalami sakit kepala, pusing, mual, gejala yang menyerupai mabuk dalam perjalanan, atau jika kamu merasa tidak nyaman atau sakit di bagian tubuh mana pun saat bermain, segera berhenti memainkan game. Jika kondisi tersebut tidak juga kunjung berhenti, carilah pertolongan medis.",
|
|
4
|
+
"796445964": "Bersiap mengunduh data ....",
|
|
5
|
+
"1102014722": "Memuat game...",
|
|
6
|
+
"1128933734": "Bersiap memuat data",
|
|
7
|
+
"1285204118": "Memeriksa update...",
|
|
8
|
+
"1737243758": "PERINGATAN: BACA SEBELUM BERMAIN",
|
|
9
|
+
"2272745789": "Pengguna",
|
|
10
|
+
"3231160485": "抵制不良游戏,拒绝盗版游戏,注意自我保护,谨防受骗上当,适度游戏益脑,沉迷游戏伤身,合理安排时间,享受健康生活。\n审批文号:国新出审[2020]1407号 ISBN 978-7-498-07852-0 出版单位:华东师范大学电子音像出版社有限公司\n著作权人:上海米哈游天命科技有限公司\n本公司积极履行《网络游戏行业防沉迷自律公约》",
|
|
11
|
+
"3535917252": "TEKAN UNTUK MULAI",
|
|
12
|
+
"3574932777": "START GAME",
|
|
13
|
+
INFORMATION_AVATAR_BIRTHDAY: "Ulang Tahun",
|
|
14
|
+
LANGUAGE_WINDOWS_TITLENAME: "Genshin Impact",
|
|
15
|
+
ONLINE_DUNGEON_GUEST_IS_READY: "Sudah Siap",
|
|
16
|
+
UI_BEYOND_RECOMMEND_EMPTY_LOADING: "Memuat ....",
|
|
17
|
+
UI_TEXT_QUEST_GUIDE_LABEL: "Pengembara",
|
|
18
|
+
tips_enter_game: "Selamat datang, %s!"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Indonesian_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/generated/text/Italian.json
|
|
2
|
+
var Italian_default = {
|
|
3
|
+
"684850635": "Se esposta a determinate immagini visive e a certi schemi di luci lampeggianti, una percentuale ridotta di individui può sperimentare attacchi epilettici. Giocare ai videogiochi può provocare crisi epilettiche in questi individui. Determinate condizioni possono causare sintomi epilettici mai rilevati prima, anche in soggetti che non hanno mai sofferto di epilessia. Se tu o un membro della tua famiglia soffrite di epilessia o avete sperimentato attacchi epilettici in passato, consulta il medico prima di iniziare a giocare. Qualora riscontrassi dolore oculare, visione alterata, emicrania, contrazioni muscolari, convulsioni, svenimenti, perdita di conoscenza o disorientamento durante il gioco, SMETTI IMMEDIATAMENTE di giocare e consulta il medico prima di continuare.\n\nIn aggiunta ai disturbi sopracitati, SMETTI IMMEDIATAMENTE di giocare in presenza di mal di testa, vertigini, nausea, sintomi simili alla chinetosi, malessere o dolore in una qualsiasi parte del corpo durante il gioco. Se il disturbo persiste, rivolgiti a un medico.",
|
|
4
|
+
"796445964": "Preparazione del download delle risorse...",
|
|
5
|
+
"1102014722": "Caricamento del gioco...",
|
|
6
|
+
"1128933734": "Preparazione del caricamento dei dati...",
|
|
7
|
+
"1285204118": "Controllo degli aggiornamenti...",
|
|
8
|
+
"1737243758": "ATTENZIONE: LEGGI PRIMA DI GIOCARE",
|
|
9
|
+
"2272745789": "Utente",
|
|
10
|
+
"3231160485": "抵制不良游戏,拒绝盗版游戏,注意自我保护,谨防受骗上当,适度游戏益脑,沉迷游戏伤身,合理安排时间,享受健康生活。\n审批文号:国新出审[2020]1407号 ISBN 978-7-498-07852-0 出版单位:华东师范大学电子音像出版社有限公司\n著作权人:上海米哈游天命科技有限公司\n本公司积极履行《网络游戏行业防沉迷自律公约》",
|
|
11
|
+
"3535917252": "FAI CLIC PER INIZIARE",
|
|
12
|
+
"3574932777": "INIZIA PARTITA",
|
|
13
|
+
INFORMATION_AVATAR_BIRTHDAY: "Compleanno",
|
|
14
|
+
LANGUAGE_WINDOWS_TITLENAME: "Genshin Impact",
|
|
15
|
+
ONLINE_DUNGEON_GUEST_IS_READY: "Pronto",
|
|
16
|
+
UI_BEYOND_RECOMMEND_EMPTY_LOADING: "Caricamento...",
|
|
17
|
+
UI_TEXT_QUEST_GUIDE_LABEL: "Viaggiat{M#ore}{F#rice}",
|
|
18
|
+
tips_enter_game: "Ti diamo il benvenuto, %s!"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Italian_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/generated/text/Japanese.json
|
|
2
|
+
var Japanese_default = {
|
|
3
|
+
"684850635": "点滅を繰り返す画面や、その他の光の刺激によって、まれに、目の痛み、視覚異常、偏頭痛、けいれんや意識障害(失神など)などの症状(光感受性発作)が起きることがあります。こうした症状のある方は、事前に必ず医師に相談してください。\n\n上記の症状に加え、頭痛、めまい、吐き気、疲労感、乗り物酔いに似た症状などを感じたときや、目、耳、手、腕、足など、身体の一部に不快感や痛みを感じたときは、すぐに使用を中止してください。使用を中止しても治らないときは、医師の診察を受けてください。",
|
|
4
|
+
"796445964": "リソースダウンロード準備",
|
|
5
|
+
"1102014722": "ゲーム読込中…",
|
|
6
|
+
"1128933734": "データロード準備",
|
|
7
|
+
"1285204118": "更新チェック中…",
|
|
8
|
+
"1737243758": "警告:ゲーム開始前にお読みください",
|
|
9
|
+
"2272745789": "ユーザー",
|
|
10
|
+
"3231160485": "抵制不良游戏,拒绝盗版游戏,注意自我保护,谨防受骗上当,适度游戏益脑,沉迷游戏伤身,合理安排时间,享受健康生活。\n审批文号:国新出审[2020]1407号 ISBN 978-7-498-07852-0 出版单位:华东师范大学电子音像出版社有限公司\n著作权人:上海米哈游天命科技有限公司\n本公司积极履行《网络游戏行业防沉迷自律公约》",
|
|
11
|
+
"3535917252": "クリックして進む",
|
|
12
|
+
"3574932777": "ゲーム開始",
|
|
13
|
+
INFORMATION_AVATAR_BIRTHDAY: "誕生日",
|
|
14
|
+
LANGUAGE_WINDOWS_TITLENAME: "原神",
|
|
15
|
+
ONLINE_DUNGEON_GUEST_IS_READY: "準備完了",
|
|
16
|
+
UI_BEYOND_RECOMMEND_EMPTY_LOADING: "ローディング中",
|
|
17
|
+
UI_TEXT_QUEST_GUIDE_LABEL: "旅人",
|
|
18
|
+
tips_enter_game: "%s、ようこそ"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Japanese_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/generated/text/Korean.json
|
|
2
|
+
var Korean_default = {
|
|
3
|
+
"684850635": "극소수의 사람이 전자 게임의 번쩍임이나 도형이 포함된 시각 영상을 본 후 급작스러운 뇌전증 발작을 일으킵니다. 해당 부류의 사람은 전자 게임을 하며 뇌전증 발작을 일으킬 수 있으며, 뇌전증 병력이 없는 사람도 게임 플레이 도중 뇌전증과 유사한 증상이 나타날 수 있습니다. 만약 귀하와 귀하의 가족이 뇌전증 병력이 있다면 게임 플레이 전 의사와 먼저 상담하십시오. 만약 게임 플레이 도중 아래의 증상: 안구 통증, 시각 이상, 편두통, 경련이나 의식 장애(기절) 등이 나타나면, 즉시 게임 플레이를 중지하고 의사와 상담하십시오",
|
|
4
|
+
"796445964": "리소스 다운로드 준비",
|
|
5
|
+
"1102014722": "LOADING…",
|
|
6
|
+
"1128933734": "데이터를 불러오는 중…",
|
|
7
|
+
"1285204118": "업데이트 체크 중…",
|
|
8
|
+
"1737243758": "경고: 게임 플레이 전 숙지하세요",
|
|
9
|
+
"2272745789": "사용자",
|
|
10
|
+
"3231160485": "抵制不良游戏,拒绝盗版游戏,注意自我保护,谨防受骗上当,适度游戏益脑,沉迷游戏伤身,合理安排时间,享受健康生活。\n审批文号:国新出审[2020]1407号 ISBN 978-7-498-07852-0 出版单位:华东师范大学电子音像出版社有限公司\n著作权人:上海米哈游天命科技有限公司\n本公司积极履行《网络游戏行业防沉迷自律公约》",
|
|
11
|
+
"3535917252": "PRESS TO START",
|
|
12
|
+
"3574932777": "게임 시작",
|
|
13
|
+
INFORMATION_AVATAR_BIRTHDAY: "생일",
|
|
14
|
+
LANGUAGE_WINDOWS_TITLENAME: "원신",
|
|
15
|
+
ONLINE_DUNGEON_GUEST_IS_READY: "준비 완료",
|
|
16
|
+
UI_BEYOND_RECOMMEND_EMPTY_LOADING: "로딩 중",
|
|
17
|
+
UI_TEXT_QUEST_GUIDE_LABEL: "여행자",
|
|
18
|
+
tips_enter_game: "%s 님, 게임에 오신 걸 환영합니다"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Korean_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/generated/text/Portuguese.json
|
|
2
|
+
var Portuguese_default = {
|
|
3
|
+
"684850635": "Uma porcentagem muito pequena de pessoas podem sofrer convulsões epilépticas quando exposta a certas imagens visuais, incluindo certos padrões de luz piscando em videogames. Jogar videogames pode induzir um ataque epilético nesses indivíduos. Certas condições podem induzir sintomas epilépticos previamente não detectados, mesmo em pessoas que não têm histórico de convulsões ou epilepsia anteriores. Se você ou alguém da sua família tiver histórico de convulsões ou epilepsia, consulte seu médico antes de jogar. Se você tiver qualquer um dos seguintes sintomas ao jogar videogames - dor ocular, visão alterada, enxaqueca, contração muscular, convulsão, desmaio, perda de consciência ou desorientação, pare IMEDIATAMENTE de jogar e consulte seu médico antes de continuar o jogo.\n\nAlém dos sintomas acima, durante o jogo, se você tiver dor de cabeça, tontura, náusea, sintomas semelhantes de enjoo ou se sentir desconforto ou dor em qualquer parte do corpo, pare IMEDIATAMENTE de jogar. Se as condições persistirem, procure atendimento médico.",
|
|
4
|
+
"796445964": "Preparando para baixar recursos",
|
|
5
|
+
"1102014722": "Carregando o jogo...",
|
|
6
|
+
"1128933734": "Preparando para carregar dados",
|
|
7
|
+
"1285204118": "Verificando atualizações...",
|
|
8
|
+
"1737243758": "AVISO: LEIA ANTES DE JOGAR",
|
|
9
|
+
"2272745789": "Usuário",
|
|
10
|
+
"3231160485": "抵制不良游戏,拒绝盗版游戏,注意自我保护,谨防受骗上当,适度游戏益脑,沉迷游戏伤身,合理安排时间,享受健康生活。\n审批文号:国新出审[2020]1407号 ISBN 978-7-498-07852-0 出版单位:华东师范大学电子音像出版社有限公司\n著作权人:上海米哈游天命科技有限公司\n本公司积极履行《网络游戏行业防沉迷自律公约》",
|
|
11
|
+
"3535917252": "Pressione para entrar",
|
|
12
|
+
"3574932777": "Iniciar jogo",
|
|
13
|
+
INFORMATION_AVATAR_BIRTHDAY: "Aniversário",
|
|
14
|
+
LANGUAGE_WINDOWS_TITLENAME: "Genshin Impact",
|
|
15
|
+
ONLINE_DUNGEON_GUEST_IS_READY: "Preparado",
|
|
16
|
+
UI_BEYOND_RECOMMEND_EMPTY_LOADING: "Carregando...",
|
|
17
|
+
UI_TEXT_QUEST_GUIDE_LABEL: "Viajante",
|
|
18
|
+
tips_enter_game: "%s, seja bem-vindo(a)"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Portuguese_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/generated/text/Russian.json
|
|
2
|
+
var Russian_default = {
|
|
3
|
+
"684850635": "Некоторые люди могут испытывать эпилептические припадки при воздействии определённых визуальных образов, в том числе мерцающего или мигающего света в видеоиграх. Определённые состояния иногда вызывают ранее не выявленные эпилептические симптомы даже у людей, у которых до этого такие симптомы не отмечались. Если у вас или у кого-либо из членов вашей семьи когда-либо возникали случаи припадков или эпилепсии, проконсультируйтесь с врачом перед тем, как начать играть. Немедленно прекратите играть и обратитесь к врачу, если во время игры вы испытываете какие-либо из следующих симптомов: резь в глазах, нарушение зрения, мигрень, подёргивание мышц, судороги, обморочное состояние, потеря сознания или дезориентация.\n\nЕсли в дополнение к вышеперечисленным симптомам во время игры у вас появляется головная боль, головокружение, тошнота или вы чувствуете дискомфорт или боль в любой части тела, НЕМЕДЛЕННО прекратите играть. Если состояние не пройдёт, обратитесь за медицинской помощью.",
|
|
4
|
+
"796445964": "Загрузка ресурсов",
|
|
5
|
+
"1102014722": "Загружается...",
|
|
6
|
+
"1128933734": "Загрузка данных",
|
|
7
|
+
"1285204118": "Проверка обновлений...",
|
|
8
|
+
"1737243758": "ВАЖНО: ВНИМАТЕЛЬНО ПРОЧТИТЕ ПЕРЕД ИГРОЙ",
|
|
9
|
+
"2272745789": "Пользователь",
|
|
10
|
+
"3231160485": "抵制不良游戏,拒绝盗版游戏,注意自我保护,谨防受骗上当,适度游戏益脑,沉迷游戏伤身,合理安排时间,享受健康生活。\n审批文号:国新出审[2020]1407号 ISBN 978-7-498-07852-0 出版单位:华东师范大学电子音像出版社有限公司\n著作权人:上海米哈游天命科技有限公司\n本公司积极履行《网络游戏行业防沉迷自律公约》",
|
|
11
|
+
"3535917252": "НАЧАТЬ ПУТЕШЕСТВИЕ",
|
|
12
|
+
"3574932777": "GENSHIN IMPACT",
|
|
13
|
+
INFORMATION_AVATAR_BIRTHDAY: "День рождения",
|
|
14
|
+
LANGUAGE_WINDOWS_TITLENAME: "Genshin Impact",
|
|
15
|
+
ONLINE_DUNGEON_GUEST_IS_READY: "Готов",
|
|
16
|
+
UI_BEYOND_RECOMMEND_EMPTY_LOADING: "Загрузка...",
|
|
17
|
+
UI_TEXT_QUEST_GUIDE_LABEL: "{M#Путешественник}{F#Путешественница}",
|
|
18
|
+
tips_enter_game: "Добро пожаловать, %s!"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Russian_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/generated/text/Spanish.json
|
|
2
|
+
var Spanish_default = {
|
|
3
|
+
"684850635": "Un número muy pequeño de personas puede tener convulsiones cuando ven algunas imágenes visuales, incluyendo destellos o gráficos de los videojuegos. Al jugar a los videojuegos, estas personas pueden tener síntomas epilépticos. Incluso las personas que no tienen antecedentes de epilepsia pueden tener síntomas similares cuando juegan a los videojuegos. Si tú o algún familiar tuyo tienen antecedentes de epilepsia, consulta con tu médico antes de jugar. Si tienes alguno de los siguientes síntomas al jugar a los videojuegos, incluyendo dolor en los ojos, anomalías en la visión, migraña, espasmos o trastornos de la conciencia (como el coma), por favor, detén el juego y consulta con tu médico antes de volver a jugar.",
|
|
4
|
+
"796445964": "Preparando la descarga...",
|
|
5
|
+
"1102014722": "Cargando juego...",
|
|
6
|
+
"1128933734": "Cargando datos",
|
|
7
|
+
"1285204118": "Verificando actualizaciones...",
|
|
8
|
+
"1737243758": "ADVERTENCIA: LEE ANTES DE JUGAR",
|
|
9
|
+
"2272745789": "Usuario",
|
|
10
|
+
"3231160485": "抵制不良游戏,拒绝盗版游戏,注意自我保护,谨防受骗上当,适度游戏益脑,沉迷游戏伤身,合理安排时间,享受健康生活。\n审批文号:国新出审[2020]1407号 ISBN 978-7-498-07852-0 出版单位:华东师范大学电子音像出版社有限公司\n著作权人:上海米哈游天命科技有限公司\n本公司积极履行《网络游戏行业防沉迷自律公约》",
|
|
11
|
+
"3535917252": "HAZ CLIC PARA EMPEZAR",
|
|
12
|
+
"3574932777": "EMPEZAR JUEGO",
|
|
13
|
+
INFORMATION_AVATAR_BIRTHDAY: "Cumpleaños",
|
|
14
|
+
LANGUAGE_WINDOWS_TITLENAME: "Genshin Impact",
|
|
15
|
+
ONLINE_DUNGEON_GUEST_IS_READY: "Ya preparado",
|
|
16
|
+
UI_BEYOND_RECOMMEND_EMPTY_LOADING: "Cargando...",
|
|
17
|
+
UI_TEXT_QUEST_GUIDE_LABEL: "Viajer{F#a}{M#o}",
|
|
18
|
+
tips_enter_game: "¡%s, bienvenido!"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Spanish_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/generated/text/Thai.json
|
|
2
|
+
var Thai_default = {
|
|
3
|
+
"684850635": "บางคนอาจมีอาการลมชักเฉียบพลันเมื่อได้รับชมภาพบางภาพรวมถึงแสงกะพริบ หรือกราฟิกที่ปรากฏในเกม ซึ่งการเล่นเกมอาจกระตุ้นให้บุคคลเหล่านี้เกิดอาการลมชักได้ แม้กระทั่งผู้ที่ไม่เคยมีประวัติว่าเป็นโรคลมชักมาก่อน ก็อาจมีอาการคล้ายกับลมชักขณะเล่นเกมได้ หากคุณหรือครอบครัวเคยมีประวัติว่าเป็นโรคลมชัก กรุณาปรึกษาแพทย์ก่อนการเล่นเกม ขณะเล่นเกมหากคุณมีอาการปวดตา, ความผิดปกติทางสายตา, ปวดไมเกรน, เป็นตะคริวหรือความผิดปกติของการรู้สึกตัว (เช่น หมดสติ) โปรดหยุดเล่นเกมทันทีและปรึกษาแพทย์ก่อนที่จะกลับมาเล่นเกมอีกครั้ง",
|
|
4
|
+
"796445964": "กำลังเตรียมดาวน์โหลดทรัพยากร",
|
|
5
|
+
"1102014722": "กำลังโหลดตัวเกม...",
|
|
6
|
+
"1128933734": "กำลังเตรียมโหลดข้อมูล",
|
|
7
|
+
"1285204118": "กำลังตรวจข้อมูลอัปเดต...",
|
|
8
|
+
"1737243758": "คำเตือน: สิ่งที่ควรทราบก่อนเล่นเกม",
|
|
9
|
+
"2272745789": "ชื่อผู้ใช้",
|
|
10
|
+
"3231160485": "抵制不良游戏,拒绝盗版游戏,注意自我保护,谨防受骗上当,适度游戏益脑,沉迷游戏伤身,合理安排时间,享受健康生活。\n审批文号:国新出审[2020]1407号 ISBN 978-7-498-07852-0 出版单位:华东师范大学电子音像出版社有限公司\n著作权人:上海米哈游天命科技有限公司\n本公司积极履行《网络游戏行业防沉迷自律公约》",
|
|
11
|
+
"3535917252": "คลิกเพื่อเริ่ม",
|
|
12
|
+
"3574932777": "เริ่มเกม",
|
|
13
|
+
INFORMATION_AVATAR_BIRTHDAY: "วันเกิด",
|
|
14
|
+
LANGUAGE_WINDOWS_TITLENAME: "Genshin Impact",
|
|
15
|
+
ONLINE_DUNGEON_GUEST_IS_READY: "พร้อมแล้ว",
|
|
16
|
+
UI_BEYOND_RECOMMEND_EMPTY_LOADING: "กำลังโหลด",
|
|
17
|
+
UI_TEXT_QUEST_GUIDE_LABEL: "นักเดินทาง",
|
|
18
|
+
tips_enter_game: "ยินดีต้อนรับ %s"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Thai_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/generated/text/Turkish.json
|
|
2
|
+
var Turkish_default = {
|
|
3
|
+
"684850635": "Bazı bireylerde oyun sırasında ekranda yanıp sönen ışıklardan veya çeşitli görsellerden dolayı epilepsi nöbetleri görülebilir. Daha önce epileptik bir semptom göstermemiş veya herhangi bir teşhis konulmamış bireylerde dahi oyun oynama sonucunda epilepsi nöbetlerinin tetiklenme ihtimali vardır. Eğer senin veya herhangi bir aile üyenin geçmişinde epileptik bir rahatsızlık yaşandıysa lütfen oyuna başlamadan önce doktoruna danış. Eğer göz ağrısı, görme anormalliği, migren, kas çekilmesi, spazm, nöbet ya da bilinç kaybı gibi bozukluklar yaşarsan oyun oynamayı DERHAL bırak ve oyuna devam etmeden önce mutlaka doktoruna görün.\n\nYukarıdaki semptomlara ek olarak, herhangi bir baş ağrısı, baş dönmesi, bulantı, kusma ya da taşıt tutmasına benzer semptomlar yaşarsan veya oyun esnasında vücudunda ağrı ya da rahatsızlık hissedersen DERHAL oyun oynamayı bırak. Oyuna ara verdiğinde belirtilerde azalma olmazsa mutlaka tıbbi yardım al.",
|
|
4
|
+
"796445964": "Kaynakları indirmeye hazırlanılıyor",
|
|
5
|
+
"1102014722": "Oyun yükleniyor...",
|
|
6
|
+
"1128933734": "Verileri yüklemeye hazırlanılıyor",
|
|
7
|
+
"1285204118": "Güncellemeler kontrol ediliyor...",
|
|
8
|
+
"1737243758": "UYARI: OYUNA BAŞLAMADAN ÖNCE OKU",
|
|
9
|
+
"2272745789": "Kullanıcı",
|
|
10
|
+
"3231160485": "抵制不良游戏,拒绝盗版游戏,注意自我保护,谨防受骗上当,适度游戏益脑,沉迷游戏伤身,合理安排时间,享受健康生活。\n审批文号:国新出审[2020]1407号 ISBN 978-7-498-07852-0 出版单位:华东师范大学电子音像出版社有限公司\n著作权人:上海米哈游天命科技有限公司\n本公司积极履行《网络游戏行业防沉迷自律公约》",
|
|
11
|
+
"3535917252": "BAŞLATMAK İÇİN TIKLA",
|
|
12
|
+
"3574932777": "OYUNU BAŞLAT",
|
|
13
|
+
INFORMATION_AVATAR_BIRTHDAY: "Doğum Günü",
|
|
14
|
+
LANGUAGE_WINDOWS_TITLENAME: "Genshin Impact",
|
|
15
|
+
ONLINE_DUNGEON_GUEST_IS_READY: "Hazır",
|
|
16
|
+
UI_BEYOND_RECOMMEND_EMPTY_LOADING: "Yükleniyor...",
|
|
17
|
+
UI_TEXT_QUEST_GUIDE_LABEL: "Gezgin",
|
|
18
|
+
tips_enter_game: "Hoş geldin %s!"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Turkish_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/generated/text/Vietnamese.json
|
|
2
|
+
var Vietnamese_default = {
|
|
3
|
+
"684850635": "Có một số ít người bị động kinh đột ngột khi xem một số hình ảnh trực quan, bao gồm đèn flash hoặc đồ họa xuất hiện trong các trò chơi điện tử. Khi chơi trò chơi điện tử, những người này có thể có triệu chứng động kinh. Ngay cả những người không có tiền sử động kinh cũng có thể gặp các triệu chứng giống như động kinh khi chơi trò chơi điện tử. Nếu bạn hoặc gia đình bạn có tiền sử bệnh động kinh, vui lòng tham khảo ý kiến bác sĩ trước khi chơi trò chơi.\n\nNếu bạn gặp các triệu chứng dưới đây khi chơi trò chơi, bao gồm đau mắt, bất thường về thị giác, đau nửa đầu, chuột rút hoặc bất tỉnh (như hôn mê), vui lòng dừng trò chơi ngay lập tức và tham khảo ý kiến bác sĩ trước khi chơi lại trò chơi này.",
|
|
4
|
+
"796445964": "Chuẩn bị tải tài nguyên",
|
|
5
|
+
"1102014722": "Đang tải trò chơi...",
|
|
6
|
+
"1128933734": "Chuẩn bị tải dữ liệu",
|
|
7
|
+
"1285204118": "Đang kiểm tra cập nhật...",
|
|
8
|
+
"1737243758": "Cảnh báo: Xem kỹ trước khi chơi trò chơi",
|
|
9
|
+
"2272745789": "Người Dùng",
|
|
10
|
+
"3231160485": "抵制不良游戏,拒绝盗版游戏,注意自我保护,谨防受骗上当,适度游戏益脑,沉迷游戏伤身,合理安排时间,享受健康生活。\n审批文号:国新出审[2020]1407号 ISBN 978-7-498-07852-0 出版单位:华东师范大学电子音像出版社有限公司\n著作权人:上海米哈游天命科技有限公司\n本公司积极履行《网络游戏行业防沉迷自律公约》",
|
|
11
|
+
"3535917252": "NHẤN ĐỂ VÀO",
|
|
12
|
+
"3574932777": "BẮT ĐẦU",
|
|
13
|
+
INFORMATION_AVATAR_BIRTHDAY: "Sinh Nhật",
|
|
14
|
+
LANGUAGE_WINDOWS_TITLENAME: "Genshin Impact",
|
|
15
|
+
ONLINE_DUNGEON_GUEST_IS_READY: "Đã Chuẩn Bị",
|
|
16
|
+
UI_BEYOND_RECOMMEND_EMPTY_LOADING: "Đang tải...",
|
|
17
|
+
UI_TEXT_QUEST_GUIDE_LABEL: "Nhà Lữ Hành",
|
|
18
|
+
tips_enter_game: "Chào mừng %s"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Vietnamese_default as default };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
//#region src/models/GameTextKey.d.ts
|
|
2
|
+
export declare enum GameTextKey {
|
|
3
|
+
Birthday = "INFORMATION_AVATAR_BIRTHDAY",
|
|
4
|
+
GameTitle = "LANGUAGE_WINDOWS_TITLENAME",
|
|
5
|
+
HealthNotice = "684850635",
|
|
6
|
+
HealthNoticeTitle = "1737243758",
|
|
7
|
+
Loading = "UI_BEYOND_RECOMMEND_EMPTY_LOADING",
|
|
8
|
+
LoginBegin = "3535917252",
|
|
9
|
+
LoginCheckingForUpdates = "1285204118",
|
|
10
|
+
LoginLoadingData = "1128933734",
|
|
11
|
+
LoginLoadingGame = "1102014722",
|
|
12
|
+
LoginPreparingDownload = "796445964",
|
|
13
|
+
LoginTitle = "3574932777",
|
|
14
|
+
LoginUserLabel = "2272745789",
|
|
15
|
+
LoginWelcome = "tips_enter_game",
|
|
16
|
+
Ready = "ONLINE_DUNGEON_GUEST_IS_READY",
|
|
17
|
+
TitleLicence = "3231160485",
|
|
18
|
+
Traveler = "UI_TEXT_QUEST_GUIDE_LABEL"
|
|
19
|
+
}
|
|
20
|
+
export declare const GameTextKeys: readonly GameTextKey[];
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/models/GameText.d.ts
|
|
23
|
+
export type GameText = Record<GameTextKey, string>;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/models/GameLanguage.d.ts
|
|
26
|
+
export declare enum GameLanguage {
|
|
27
|
+
ChineseSimplified = "ChineseSimplified",
|
|
28
|
+
ChineseTraditional = "ChineseTraditional",
|
|
29
|
+
English = "English",
|
|
30
|
+
French = "French",
|
|
31
|
+
German = "German",
|
|
32
|
+
Indonesian = "Indonesian",
|
|
33
|
+
Italian = "Italian",
|
|
34
|
+
Japanese = "Japanese",
|
|
35
|
+
Korean = "Korean",
|
|
36
|
+
Portuguese = "Portuguese",
|
|
37
|
+
Russian = "Russian",
|
|
38
|
+
Spanish = "Spanish",
|
|
39
|
+
Thai = "Thai",
|
|
40
|
+
Turkish = "Turkish",
|
|
41
|
+
Vietnamese = "Vietnamese"
|
|
42
|
+
}
|
|
43
|
+
export declare const GameLanguages: readonly GameLanguage[];
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/generated/GameTextLoaderMap.d.ts
|
|
46
|
+
export declare const ENGLISH_GAME_TEXT: GameText;
|
|
47
|
+
export declare const GameTextLoaderMap: Record<GameLanguage, () => Promise<GameText>>;
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/models/TravelerGender.d.ts
|
|
50
|
+
export declare enum TravelerGender {
|
|
51
|
+
Female = "female",
|
|
52
|
+
Male = "male"
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/services/GameLanguageTagMap.d.ts
|
|
56
|
+
export declare const GameLanguageTagMap: Record<GameLanguage, string>;
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/services/checkIsGameLanguage.d.ts
|
|
59
|
+
export declare const checkIsGameLanguage: (name: string) => name is GameLanguage;
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/services/fillLinePlaceholders.d.ts
|
|
62
|
+
export declare const fillLinePlaceholders: (text: string, nickname: string, gender: TravelerGender) => string;
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/services/getAcceptLanguageTags.d.ts
|
|
65
|
+
export declare const getAcceptLanguageTags: (header: string) => string[];
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/services/getCanonicalLanguage.d.ts
|
|
68
|
+
export declare const getCanonicalLanguage: (name: string) => GameLanguage | undefined;
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/services/getLanguageDisplayName.d.ts
|
|
71
|
+
export declare const getLanguageDisplayName: (languageName: string, inLanguageName: string) => string;
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/services/matchGameLanguage.d.ts
|
|
74
|
+
export declare const matchGameLanguage: (preferredTags: readonly string[]) => GameLanguage;
|
|
75
|
+
//#endregion
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { getResult } from "@esposter/shared";
|
|
2
|
+
//#region src/generated/text/English.json
|
|
3
|
+
var English_default = {
|
|
4
|
+
"684850635": "A very small percentage of individuals may experience epileptic seizures when exposed to certain visual images, including certain light patterns of flashing lights in video games. Playing video games may induce an epileptic seizure in these individuals. Certain conditions may induce previously undetected epileptic symptoms even in persons who have no prior history of seizures or epilepsy. If you, or anyone in your family, have any history of prior seizures or epilepsy, consult your physician prior to playing. If you experience any of the following symptoms while playing a video game — eye soreness, altered vision, migraines, muscle twitching, convulsions, blackouts, loss of awareness or disorientation, IMMEDIATELY stop playing and consult your physician before resuming play.\n\nIn addition to the above symptoms, if you have a headache, dizziness, nausea, similar symptoms of motion sickness, or if you feel a discomfort or pain in any body part whilst playing, IMMEDIATELY stop playing. If the condition persists, seek medical attention.",
|
|
5
|
+
"796445964": "Preparing to download resources",
|
|
6
|
+
"1102014722": "Loading game...",
|
|
7
|
+
"1128933734": "Preparing to load data",
|
|
8
|
+
"1285204118": "Checking for updates...",
|
|
9
|
+
"1737243758": "WARNING: READ BEFORE PLAYING",
|
|
10
|
+
"2272745789": "User",
|
|
11
|
+
"3231160485": "抵制不良游戏,拒绝盗版游戏,注意自我保护,谨防受骗上当,适度游戏益脑,沉迷游戏伤身,合理安排时间,享受健康生活。\n审批文号:国新出审[2020]1407号 ISBN 978-7-498-07852-0 出版单位:华东师范大学电子音像出版社有限公司\n著作权人:上海米哈游天命科技有限公司\n本公司积极履行《网络游戏行业防沉迷自律公约》",
|
|
12
|
+
"3535917252": "CLICK TO BEGIN",
|
|
13
|
+
"3574932777": "START GAME",
|
|
14
|
+
INFORMATION_AVATAR_BIRTHDAY: "Birthday",
|
|
15
|
+
LANGUAGE_WINDOWS_TITLENAME: "Genshin Impact",
|
|
16
|
+
ONLINE_DUNGEON_GUEST_IS_READY: "Ready",
|
|
17
|
+
UI_BEYOND_RECOMMEND_EMPTY_LOADING: "Loading...",
|
|
18
|
+
UI_TEXT_QUEST_GUIDE_LABEL: "Traveler",
|
|
19
|
+
tips_enter_game: "Welcome, %s!"
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/models/GameLanguage.ts
|
|
23
|
+
let GameLanguage = /* @__PURE__ */ function(GameLanguage) {
|
|
24
|
+
GameLanguage["ChineseSimplified"] = "ChineseSimplified";
|
|
25
|
+
GameLanguage["ChineseTraditional"] = "ChineseTraditional";
|
|
26
|
+
GameLanguage["English"] = "English";
|
|
27
|
+
GameLanguage["French"] = "French";
|
|
28
|
+
GameLanguage["German"] = "German";
|
|
29
|
+
GameLanguage["Indonesian"] = "Indonesian";
|
|
30
|
+
GameLanguage["Italian"] = "Italian";
|
|
31
|
+
GameLanguage["Japanese"] = "Japanese";
|
|
32
|
+
GameLanguage["Korean"] = "Korean";
|
|
33
|
+
GameLanguage["Portuguese"] = "Portuguese";
|
|
34
|
+
GameLanguage["Russian"] = "Russian";
|
|
35
|
+
GameLanguage["Spanish"] = "Spanish";
|
|
36
|
+
GameLanguage["Thai"] = "Thai";
|
|
37
|
+
GameLanguage["Turkish"] = "Turkish";
|
|
38
|
+
GameLanguage["Vietnamese"] = "Vietnamese";
|
|
39
|
+
return GameLanguage;
|
|
40
|
+
}({});
|
|
41
|
+
const GameLanguages = Object.values(GameLanguage);
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/generated/GameTextLoaderMap.ts
|
|
44
|
+
const ENGLISH_GAME_TEXT = English_default;
|
|
45
|
+
const GameTextLoaderMap = {
|
|
46
|
+
["ChineseSimplified"]: async () => (await import("./ChineseSimplified-D4GyCg-y.js")).default,
|
|
47
|
+
["ChineseTraditional"]: async () => (await import("./ChineseTraditional-C1bTcZ6P.js")).default,
|
|
48
|
+
["English"]: () => Promise.resolve(ENGLISH_GAME_TEXT),
|
|
49
|
+
["French"]: async () => (await import("./French-aGftPEej.js")).default,
|
|
50
|
+
["German"]: async () => (await import("./German-d2m3TE4j.js")).default,
|
|
51
|
+
["Indonesian"]: async () => (await import("./Indonesian-BZn6A8oC.js")).default,
|
|
52
|
+
["Italian"]: async () => (await import("./Italian-BerJr7hE.js")).default,
|
|
53
|
+
["Japanese"]: async () => (await import("./Japanese-DfmnqSu5.js")).default,
|
|
54
|
+
["Korean"]: async () => (await import("./Korean-DFUUjD0j.js")).default,
|
|
55
|
+
["Portuguese"]: async () => (await import("./Portuguese-DJVA9ljC.js")).default,
|
|
56
|
+
["Russian"]: async () => (await import("./Russian-COO1sWFU.js")).default,
|
|
57
|
+
["Spanish"]: async () => (await import("./Spanish-BKBrFCFE.js")).default,
|
|
58
|
+
["Thai"]: async () => (await import("./Thai-DweHiXVy.js")).default,
|
|
59
|
+
["Turkish"]: async () => (await import("./Turkish-CGPRyFNv.js")).default,
|
|
60
|
+
["Vietnamese"]: async () => (await import("./Vietnamese-PjRH0I77.js")).default
|
|
61
|
+
};
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/models/GameTextKey.ts
|
|
64
|
+
let GameTextKey = /* @__PURE__ */ function(GameTextKey) {
|
|
65
|
+
GameTextKey["Birthday"] = "INFORMATION_AVATAR_BIRTHDAY";
|
|
66
|
+
GameTextKey["GameTitle"] = "LANGUAGE_WINDOWS_TITLENAME";
|
|
67
|
+
GameTextKey["HealthNotice"] = "684850635";
|
|
68
|
+
GameTextKey["HealthNoticeTitle"] = "1737243758";
|
|
69
|
+
GameTextKey["Loading"] = "UI_BEYOND_RECOMMEND_EMPTY_LOADING";
|
|
70
|
+
GameTextKey["LoginBegin"] = "3535917252";
|
|
71
|
+
GameTextKey["LoginCheckingForUpdates"] = "1285204118";
|
|
72
|
+
GameTextKey["LoginLoadingData"] = "1128933734";
|
|
73
|
+
GameTextKey["LoginLoadingGame"] = "1102014722";
|
|
74
|
+
GameTextKey["LoginPreparingDownload"] = "796445964";
|
|
75
|
+
GameTextKey["LoginTitle"] = "3574932777";
|
|
76
|
+
GameTextKey["LoginUserLabel"] = "2272745789";
|
|
77
|
+
GameTextKey["LoginWelcome"] = "tips_enter_game";
|
|
78
|
+
GameTextKey["Ready"] = "ONLINE_DUNGEON_GUEST_IS_READY";
|
|
79
|
+
GameTextKey["TitleLicence"] = "3231160485";
|
|
80
|
+
GameTextKey["Traveler"] = "UI_TEXT_QUEST_GUIDE_LABEL";
|
|
81
|
+
return GameTextKey;
|
|
82
|
+
}({});
|
|
83
|
+
const GameTextKeys = Object.values(GameTextKey);
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/models/TravelerGender.ts
|
|
86
|
+
let TravelerGender = /* @__PURE__ */ function(TravelerGender) {
|
|
87
|
+
TravelerGender["Female"] = "female";
|
|
88
|
+
TravelerGender["Male"] = "male";
|
|
89
|
+
return TravelerGender;
|
|
90
|
+
}({});
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/services/GameLanguageTagMap.ts
|
|
93
|
+
const GameLanguageTagMap = {
|
|
94
|
+
["ChineseSimplified"]: "zh-Hans",
|
|
95
|
+
["ChineseTraditional"]: "zh-Hant",
|
|
96
|
+
["English"]: "en",
|
|
97
|
+
["French"]: "fr",
|
|
98
|
+
["German"]: "de",
|
|
99
|
+
["Indonesian"]: "id",
|
|
100
|
+
["Italian"]: "it",
|
|
101
|
+
["Japanese"]: "ja",
|
|
102
|
+
["Korean"]: "ko",
|
|
103
|
+
["Portuguese"]: "pt",
|
|
104
|
+
["Russian"]: "ru",
|
|
105
|
+
["Spanish"]: "es",
|
|
106
|
+
["Thai"]: "th",
|
|
107
|
+
["Turkish"]: "tr",
|
|
108
|
+
["Vietnamese"]: "vi"
|
|
109
|
+
};
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/services/checkIsGameLanguage.ts
|
|
112
|
+
const gameLanguageNames = GameLanguages;
|
|
113
|
+
const checkIsGameLanguage = (name) => gameLanguageNames.includes(name);
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/services/fillLinePlaceholders.ts
|
|
116
|
+
const NICKNAME_PLACEHOLDER = "{NICKNAME}";
|
|
117
|
+
const GENDERED_WORD_REGEX = /\{(?<initial>[FM])#(?<word>[^}]*)\}/gu;
|
|
118
|
+
const TravelerGenderInitialMap = {
|
|
119
|
+
["female"]: "F",
|
|
120
|
+
["male"]: "M"
|
|
121
|
+
};
|
|
122
|
+
const fillLinePlaceholders = (text, nickname, gender) => text.replaceAll(NICKNAME_PLACEHOLDER, () => nickname).replaceAll(GENDERED_WORD_REGEX, (_placeholder, initial, word) => initial === TravelerGenderInitialMap[gender] ? word : "");
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/services/getAcceptLanguageTags.ts
|
|
125
|
+
const DEFAULT_QUALITY = 1;
|
|
126
|
+
const getAcceptLanguageTags = (header) => header.split(",").map((part) => {
|
|
127
|
+
const [tag = "", ...parameters] = part.split(";").map((piece) => piece.trim());
|
|
128
|
+
const qualityParameter = parameters.find((parameter) => parameter.startsWith("q="));
|
|
129
|
+
const quality = qualityParameter ? Number(qualityParameter.slice(2)) : DEFAULT_QUALITY;
|
|
130
|
+
return {
|
|
131
|
+
quality: Number.isNaN(quality) ? 0 : quality,
|
|
132
|
+
tag
|
|
133
|
+
};
|
|
134
|
+
}).filter(({ quality, tag }) => tag && quality > 0).toSorted((first, second) => second.quality - first.quality).map(({ tag }) => tag);
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region src/services/getLanguageDisplayName.ts
|
|
137
|
+
const getLanguageDisplayName = (languageName, inLanguageName) => {
|
|
138
|
+
if (!checkIsGameLanguage(languageName) || !checkIsGameLanguage(inLanguageName)) return languageName;
|
|
139
|
+
return new Intl.DisplayNames([GameLanguageTagMap[inLanguageName]], { type: "language" }).of(GameLanguageTagMap[languageName]) ?? languageName;
|
|
140
|
+
};
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region src/services/getCanonicalLanguage.ts
|
|
143
|
+
const getCanonicalLanguage = (name) => GameLanguages.find((language) => language.toLowerCase() === name.toLowerCase() || getLanguageDisplayName(language, language).toLowerCase() === name.toLowerCase());
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/services/matchGameLanguage.ts
|
|
146
|
+
const getMaximizedLocale = (tag) => getResult(() => new Intl.Locale(tag).maximize()).match((locale) => locale, () => void 0);
|
|
147
|
+
const matchGameLanguage = (preferredTags) => {
|
|
148
|
+
for (const preferredTag of preferredTags) {
|
|
149
|
+
const preferredLocale = getMaximizedLocale(preferredTag);
|
|
150
|
+
if (!preferredLocale) continue;
|
|
151
|
+
const language = GameLanguages.find((gameLanguage) => {
|
|
152
|
+
const gameLocale = new Intl.Locale(GameLanguageTagMap[gameLanguage]).maximize();
|
|
153
|
+
return gameLocale.language === preferredLocale.language && gameLocale.script === preferredLocale.script;
|
|
154
|
+
});
|
|
155
|
+
if (language) return language;
|
|
156
|
+
}
|
|
157
|
+
return "English";
|
|
158
|
+
};
|
|
159
|
+
//#endregion
|
|
160
|
+
export { ENGLISH_GAME_TEXT, GameLanguage, GameLanguageTagMap, GameLanguages, GameTextKey, GameTextKeys, GameTextLoaderMap, TravelerGender, checkIsGameLanguage, fillLinePlaceholders, getAcceptLanguageTags, getCanonicalLanguage, getLanguageDisplayName, matchGameLanguage };
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "genshin-text",
|
|
3
|
+
"version": "3.9.0",
|
|
4
|
+
"description": "Genshin Impact's own text in its fifteen languages: the language registry, a matcher from a browser's locale, and the game's strings looked up by the game's own text id, one lazily loaded chunk per language.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"genshin",
|
|
7
|
+
"genshin-impact",
|
|
8
|
+
"i18n",
|
|
9
|
+
"localization",
|
|
10
|
+
"textmap",
|
|
11
|
+
"translation",
|
|
12
|
+
"typescript"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/Esposter/Esposter/blob/main/packages/genshin-text#readme",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/Esposter/Esposter/issues"
|
|
17
|
+
},
|
|
18
|
+
"license": "Apache-2.0",
|
|
19
|
+
"author": "Jimmy Chen",
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/Esposter/Esposter.git"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
27
|
+
"type": "module",
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"types": "dist/index.d.ts",
|
|
30
|
+
"imports": {
|
|
31
|
+
"#src/*": "./src/*.ts",
|
|
32
|
+
"#src/*.json": "./src/*.json"
|
|
33
|
+
},
|
|
34
|
+
"exports": {
|
|
35
|
+
".": "./dist/index.js",
|
|
36
|
+
"./package.json": "./package.json"
|
|
37
|
+
},
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsdown",
|
|
43
|
+
"format": "oxfmt",
|
|
44
|
+
"format:check": "oxfmt --check",
|
|
45
|
+
"lint": "eslint .",
|
|
46
|
+
"lint:fix": "eslint --fix .",
|
|
47
|
+
"test": "vitest",
|
|
48
|
+
"typecheck": "tsc"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@esposter/shared": "3.9.0"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@arethetypeswrong/core": "^0.18.5",
|
|
55
|
+
"@esposter/configuration": "3.9.0",
|
|
56
|
+
"publint": "^0.3.25",
|
|
57
|
+
"tsdown": "^0.23.0",
|
|
58
|
+
"vitest": "^5.0.3"
|
|
59
|
+
},
|
|
60
|
+
"gitHead": "f9f6208c35e6cff4ed33910623c798cd88f09301"
|
|
61
|
+
}
|