feat/language-translation (Replay, Text updates, ChatBox, WaitRoom)
-
Developer
@SKTT1Ryze Hello my friend! How are you doing? I would like a little help with Filters... How can we proceed with translating each filter (Attributes, Races, Types)? I saw that it comes from an artifact called wasm (I believe it is the one handling these values). Thank you for your time! Have a great week!!
-
Maintainer
@BBeretta It depends on a Configuration, which the
I18N
is supported: [strings.conf]https://cdn02.moecube.com:444/ygopro-database/{zh-CN or en-US}/strings.conf
. See strings.ts for more details.I'm at work and i would introduce some details for you later night, thank you!
-
Maintainer
@BBeretta The texts of filter(Attributes, Races, Types) are defined in
strings.conf
, whose url ishttps://cdn02.moecube.com:444/ygopro-database/{lang}/strings.conf
. You can specify thelang
of the url to get translations texts likezh-CN
. It currently only supportsen-US
,es-ES
,ja-JP
,ko-KR
,zh-CN
. And it is in the strings.ts that fetches the translations and store them in thelocalStorage
of the browser. So what we need to do is letstrings.ts
supportsI18N
.If you have any questions, feel free to create issues and tell me. Thanks for your efforts!
-
Developer
Hey @SKTT1Ryze Hey friend! Thank you very much for the information! I will take a look at that class and run some tests. Thanks!!