Browse Source

add nb config, available in UI

Signed-off-by: Runar Ingebrigtsen <[email protected]>
pull/2447/head
Runar Ingebrigtsen 6 months ago
parent
commit
05b1089b5b
No known key found for this signature in database GPG Key ID: 1D0AEA139B8F3C07
  1. 2
      src/i18n/i18n.config.ts
  2. 5
      src/nuxt.config.ts

2
src/i18n/i18n.config.ts

@ -15,6 +15,7 @@ import tr from './locales/tr.json';
import bn from './locales/bn.json'; import bn from './locales/bn.json';
import id from './locales/id.json'; import id from './locales/id.json';
import nl from './locales/nl.json'; import nl from './locales/nl.json';
import nb from './locales/nb.json';
export default defineI18nConfig(() => ({ export default defineI18nConfig(() => ({
legacy: false, legacy: false,
@ -37,5 +38,6 @@ export default defineI18nConfig(() => ({
bn, bn,
id, id,
nl, nl,
nb,
}, },
})); }));

5
src/nuxt.config.ts

@ -114,6 +114,11 @@ export default defineNuxtConfig({
language: 'nl-NL', language: 'nl-NL',
name: 'Nederlands', name: 'Nederlands',
}, },
{
code: 'nb',
language: 'nb-NO',
name: 'Norsk bokmål',
},
], ],
defaultLocale: 'en', defaultLocale: 'en',
vueI18n: './i18n.config.ts', vueI18n: './i18n.config.ts',

Loading…
Cancel
Save