|
1 | 1 | import "../../styles/globals.css";
|
2 | 2 | import "@navikt/ds-css";
|
3 | 3 |
|
4 |
| -import type { AppProps } from "next/app"; |
5 |
| -import { onLanguageSelect } from "@navikt/nav-dekoratoren-moduler"; |
6 |
| - |
7 | 4 | import i18n from 'i18next';
|
8 | 5 | import { initReactI18next } from 'react-i18next';
|
9 | 6 |
|
| 7 | +import { onLanguageSelect } from "@navikt/nav-dekoratoren-moduler"; |
| 8 | +import type { AppProps } from "next/app"; |
| 9 | + |
| 10 | + |
| 11 | +// Await init? |
10 | 12 | i18n
|
11 | 13 | // pass the i18n instance to react-i18next.
|
12 | 14 | .use(initReactI18next)
|
13 | 15 | // init i18next
|
14 | 16 | // for all options read: https://www.i18next.com/overview/configuration-options
|
15 | 17 | .init({
|
16 |
| - debug: true, |
| 18 | + debug: false, |
17 | 19 | fallbackLng: 'nb',
|
18 | 20 | interpolation: {
|
19 | 21 | escapeValue: false, // not needed for react as it escapes by default
|
20 | 22 | },
|
21 | 23 | resources: {
|
22 |
| - en: { |
23 |
| - translation: { |
24 |
| - "menuSend": "Send", |
25 |
| - "menuHistory": "Previous report cards", |
26 |
| - "menuAbout": "About", |
27 |
| - "menuFaq": "FAQ", |
28 |
| - "title": "New solution" |
29 |
| - } |
30 |
| - }, |
31 | 24 | nb: {
|
32 | 25 | translation: {
|
33 | 26 | "menuSend": "Send",
|
34 | 27 | "menuHistory": "Tidligere meldekort",
|
35 | 28 | "menuAbout": "Om meldekort",
|
36 | 29 | "menuFaq": "Ofte stilte spørsmål",
|
37 |
| - "title": "Ny løsning" |
| 30 | + |
| 31 | + "indexTitle": "Ny løsning", |
| 32 | + "indexDescription": "Du kan sende inn meldekort for følgende perioder:", |
| 33 | + |
| 34 | + "historyTitle": "Tidligere meldekort", |
| 35 | + |
| 36 | + "aboutTitle": "Om meldekort", |
| 37 | + |
| 38 | + "faqTitle": "Ofte stilte spørsmål", |
| 39 | + |
| 40 | + "period": "Periode", |
| 41 | + "date": "Dato", |
| 42 | + "week": "Uke", |
| 43 | + "startFillingOut": "Begynn utfylling" |
| 44 | + } |
| 45 | + }, |
| 46 | + en: { |
| 47 | + translation: { |
| 48 | + "menuSend": "Send", |
| 49 | + "menuHistory": "Previous report cards", |
| 50 | + "menuAbout": "About", |
| 51 | + "menuFaq": "FAQ", |
| 52 | + |
| 53 | + "indexTitle": "New solution", |
| 54 | + "indexDescription": "You can submit registration cards for the following periods:", |
| 55 | + |
| 56 | + "historyTitle": "Previous report cards", |
| 57 | + |
| 58 | + "aboutTitle": "About report cards", |
| 59 | + |
| 60 | + "faqTitle": "FAQ", |
| 61 | + |
| 62 | + "period": "Period", |
| 63 | + "date": "Date", |
| 64 | + "week": "Week", |
| 65 | + "startFillingOut": "Start filling out" |
38 | 66 | }
|
39 | 67 | }
|
40 | 68 | }
|
|
0 commit comments