From 4580c5bc7c307188c358f2a561adbf2ee6ec0a5f Mon Sep 17 00:00:00 2001 From: Anders Engan Date: Tue, 12 Nov 2024 17:03:01 +0100 Subject: [PATCH] Adds Norwegian translations (#2268) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add translations for norwegian bokmål * Add translations for norwegian nynorsk --- src/translations/nb.ts | 39 +++++++++++++++++++++++++++++++++++++++ src/translations/nn.ts | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 src/translations/nb.ts create mode 100644 src/translations/nn.ts diff --git a/src/translations/nb.ts b/src/translations/nb.ts new file mode 100644 index 00000000..2fc21f2e --- /dev/null +++ b/src/translations/nb.ts @@ -0,0 +1,39 @@ +import { registerTranslation } from '../utilities/localize.js'; +import type { Translation } from "../utilities/localize.js"; + +const translation: Translation = { + $code: 'nb', + $name: 'Norwegian Bokmål', + $dir: 'ltr', + + carousel: 'Karusell', + clearEntry: 'Tøm felt', + close: 'Lukk', + copied: 'Kopiert', + copy: 'Kopier', + currentValue: 'Nåværende verdi', + error: 'Feil', + goToSlide: (slide, count) => `Gå til visning ${slide} av ${count}`, + hidePassword: 'Skjul passord', + loading: 'Laster', + nextSlide: 'Neste visning', + numOptionsSelected: num => { + if (num === 0) return 'Ingen alternativer valgt'; + if (num === 1) return 'Ett alternativ valgt'; + return `${num} alternativer valgt`; + }, + previousSlide: 'Forrige visning', + progress: 'Fremdrift', + remove: 'Fjern', + resize: 'Endre størrelse', + scrollToEnd: 'Rull til slutten', + scrollToStart: 'Rull til starten', + selectAColorFromTheScreen: 'Velg en farge fra skjermen', + showPassword: 'Vis passord', + slideNum: slide => `Visning ${slide}`, + toggleColorFormat: 'Bytt fargeformat' +}; + +registerTranslation(translation); + +export default translation; diff --git a/src/translations/nn.ts b/src/translations/nn.ts new file mode 100644 index 00000000..636454bb --- /dev/null +++ b/src/translations/nn.ts @@ -0,0 +1,39 @@ +import { registerTranslation } from '../utilities/localize.js'; +import type { Translation } from "../utilities/localize.js"; + +const translation: Translation = { + $code: 'nn', + $name: 'Norwegian Nynorsk', + $dir: 'ltr', + + carousel: 'Karusell', + clearEntry: 'Tøm felt', + close: 'Lukk', + copied: 'Kopiert', + copy: 'Kopier', + currentValue: 'Nåverande verdi', + error: 'Feil', + goToSlide: (slide, count) => `Gå til visning ${slide} av ${count}`, + hidePassword: 'Gøym passord', + loading: 'Lastar', + nextSlide: 'Neste visning', + numOptionsSelected: num => { + if (num === 0) return 'Ingen alternativ valt'; + if (num === 1) return 'Eitt alternativ valt'; + return `${num} alternativ valt`; + }, + previousSlide: 'Førre visning', + progress: 'Framdrift', + remove: 'Fjern', + resize: 'Endre storleik', + scrollToEnd: 'Rull til slutten', + scrollToStart: 'Rull til starten', + selectAColorFromTheScreen: 'Vel ein farge frå skjermen', + showPassword: 'Vis passord', + slideNum: slide => `Visning ${slide}`, + toggleColorFormat: 'Byt fargeformat' +}; + +registerTranslation(translation); + +export default translation;