Skip to content

Commit

Permalink
Adds Norwegian translations (#2268)
Browse files Browse the repository at this point in the history
* Add translations for norwegian bokmål

* Add translations for norwegian nynorsk
  • Loading branch information
edgarnansen authored Nov 12, 2024
1 parent 8db6580 commit 4580c5b
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/translations/nb.ts
Original file line number Diff line number Diff line change
@@ -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;
39 changes: 39 additions & 0 deletions src/translations/nn.ts
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 4580c5b

Please sign in to comment.