Added Polish Translation

Added Polish Language 🇵🇱
This commit is contained in:
Jasper
2025-01-29 19:43:53 +01:00
committed by GitHub
5 changed files with 487 additions and 3 deletions
+1
View File
@@ -466,6 +466,7 @@ export interface ODLanguageManagerIds_Default {
"openticket:arabic":ODLanguage,
"openticket:hindi":ODLanguage,
"openticket:lithuanian":ODLanguage,
"openticket:polski":ODLanguage,
//ADD NEW LANGUAGES HERE!!!
}
+4
View File
@@ -1194,6 +1194,10 @@ export class ODCheckerCustomStructure_EmojiString extends ODCheckerStringStructu
const lt = checker.locationTraceDeref(locationTrace)
if (typeof value != "string") return false
// check if the string is a valid custom emoji
const customEmojiFormat = /^[\w-]+:\d+$/
if (customEmojiFormat.test(value)) return true
const discordEmojiSplitter = /(?:<a?:[^:]*:[0-9]+>)/g
const splitted = value.split(discordEmojiSplitter)
const discordEmojiAmount = splitted.length-1
+1
View File
@@ -24,6 +24,7 @@ export const loadAllLanguages = async () => {
openticket.languages.add(new api.ODJsonLanguage("openticket:arabic","arabic.json"))
openticket.languages.add(new api.ODJsonLanguage("openticket:hindi","hindi.json"))
openticket.languages.add(new api.ODJsonLanguage("openticket:lithuanian","lithuanian.json"))
openticket.languages.add(new api.ODJsonLanguage("openticket:polski","polski.json"))
/** How to add more languages?
* - Register the language to the manager (see above)