Merge pull request #6663 from Adri1/norwegian-bokmal

[i18n] Norwegian Bokmål initial commit
This commit is contained in:
Lugiad 2025-12-04 20:48:49 +01:00 committed by GitHub
parent ebdbe2e118
commit d8e8dbf8c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 20 additions and 0 deletions

View File

@ -207,6 +207,7 @@ export async function initI18n(): Promise<void> {
"ro",
"ru",
"tl",
"nb-NO",
],
backend: {
loadPath(lng: string, [ns]: string[]) {

View File

@ -86,6 +86,10 @@ export const languageOptions = [
label: "Dansk (Needs Help)",
handler: () => changeLocaleHandler("da"),
},
{
label: "Norsk bokmål (Needs Help)",
handler: () => changeLocaleHandler("nb-NO"),
},
{
label: "Română (Needs Help)",
handler: () => changeLocaleHandler("ro"),

View File

@ -147,6 +147,10 @@ const languageSettings: { [key: string]: LanguageSetting } = {
starterInfoYOffset: 0.5,
starterInfoXPos: 26,
},
"nb-NO": {
starterInfoTextSize: "56px",
instructionTextSize: "38px",
},
};
const valueReductionMax = 2;

View File

@ -171,6 +171,10 @@ const languageSettings: { [key: string]: LanguageSetting } = {
starterInfoTextSize: "56px",
instructionTextSize: "38px",
},
"nb-NO": {
starterInfoTextSize: "56px",
instructionTextSize: "38px",
},
};
const valueReductionMax = 2;

View File

@ -111,6 +111,12 @@ export class SettingsDisplayUiHandler extends AbstractSettingsUiHandler {
label: "Dansk (Needs Help)",
};
break;
case "nb-NO":
this.settings[languageIndex].options[0] = {
value: "Norsk bokmål",
label: "Norsk bokmål (Needs Help)",
};
break;
case "ro":
this.settings[languageIndex].options[0] = {
value: "Română",

View File

@ -414,6 +414,7 @@ export function hasAllLocalizedSprites(lang?: string): boolean {
case "ca":
case "ru":
case "tl":
case "nb-NO":
return true;
default:
return false;