The 4 new languages can now be used in OTv4.0.1

This commit is contained in:
DJj123dj
2025-03-26 15:13:55 +01:00
parent 2a82bdebae
commit d81b1e7be3
3 changed files with 14 additions and 6 deletions
+4
View File
@@ -467,6 +467,10 @@ export interface ODLanguageManagerIds_Default {
"opendiscord:hindi":ODLanguage,
"opendiscord:lithuanian":ODLanguage,
"opendiscord:polish":ODLanguage,
"opendiscord:latvian":ODLanguage,
"opendiscord:norwegian":ODLanguage,
"opendiscord:russian":ODLanguage,
"opendiscord:swedish":ODLanguage,
//ADD NEW LANGUAGES HERE!!!
}
+4
View File
@@ -25,6 +25,10 @@ export const loadAllLanguages = async () => {
opendiscord.languages.add(new api.ODJsonLanguage("opendiscord:hindi","hindi.json"))
opendiscord.languages.add(new api.ODJsonLanguage("opendiscord:lithuanian","lithuanian.json"))
opendiscord.languages.add(new api.ODJsonLanguage("opendiscord:polish","polish.json"))
opendiscord.languages.add(new api.ODJsonLanguage("opendiscord:latvian","latvian.json"))
opendiscord.languages.add(new api.ODJsonLanguage("opendiscord:norwegian","norwegian.json"))
opendiscord.languages.add(new api.ODJsonLanguage("opendiscord:russian","russian.json"))
opendiscord.languages.add(new api.ODJsonLanguage("opendiscord:swedish","swedish.json"))
/** How to add more languages?
* - Register the language to the manager (see above)