mirror of
https://github.com/shoelace-style/shoelace.git
synced 2026-01-12 02:59:13 +00:00
Adds Norwegian translations (#2268)
* Add translations for norwegian bokmål * Add translations for norwegian nynorsk
This commit is contained in:
39
src/translations/nb.ts
Normal file
39
src/translations/nb.ts
Normal file
@@ -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
src/translations/nn.ts
Normal file
39
src/translations/nn.ts
Normal file
@@ -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;
|
||||
Reference in New Issue
Block a user