How To Add Locales - Mantan21/Genshin-Impact-Wish-Simulator GitHub Wiki
Guide to Add new Locale
- 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.jsonfile in thecharactersandweaponsfolders too. - Then navigate to
/src/lib/helpers/i18n.js. Insert the new locale code intosupportedLocalesarray, if you also localize character/weapon, insert the new locale code toitemLocalesarray 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_CODEwith 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#/