-
-
Notifications
You must be signed in to change notification settings - Fork 75
How To Add Locales
Agustinus Yohannes edited this page Aug 19, 2022
·
1 revision
- To add a language, just duplicate
en-US.json
, rename with Locale code and edit it, change everythings that need to change. - Some languages keep character and weapon names in English, if the language you want to add has its own name for the characters/weapons you can localize it by duplicating the
en-US.json
file in thecharacters
andweapons
folders too. - Then navigate to
/src/lib/helpers/i18n.js
. Insert the new locale code intosupportedLocales
array, if you also localize character/weapon, insert the new locale code toitemLocales
array as well.const supportedLocales = ['en-US', 'id-ID', 'ru-RU', 'zh-CN', 'new-LOCALE']; const itemLocales = ['en-US', 'ru-RU', 'zh-CN', 'new-LOCALE'];
It might take a long time to type all the text manually, so here are some links from the official site that you can open and copy the text
Replace
LANGUAGE_CODE
with language that you want to add, like en, es, fr, vi, ja, th, or others language that available in genhsin impact game.
-
Beginners' Wish
https://webstatic-sea.hoyoverse.com/genshin/event/e20190909gacha/index.html?lang=LANGUAGE_CODE®ion=os_asia#/newbiegacha
-
Standard Wish
https://webstatic-sea.hoyoverse.com/genshin/event/e20190909gacha/index.html?gacha_id=fecafa7b6560db5f3182222395d88aaa6aaac1bc&lang=LANGUAGE_CODE®ion=os_asia#/
-
Character Event Wish (Yoimiya Banner)
https://webstatic-sea.hoyoverse.com/genshin/event/e20190909gacha/index.html?gacha_id=d7d9d26fd678245ee04bec46b4bab7a8f5359c90&lang=LANGUAGE_CODE®ion=os_asia#/
-
Weapon Wish
https://webstatic-sea.hoyoverse.com/genshin/event/e20190909gacha/index.html?gacha_id=38aa9125d7f6a5c4cdaceff8ac720b22ad9236b3&lang=LANGUAGE_CODE®ion=os_asia#/
The Apps Originally Deployed to Wishimulator.App