aboutsummaryrefslogtreecommitdiffstats
path: root/apps/kit
diff options
context:
space:
mode:
Diffstat (limited to 'apps/kit')
-rw-r--r--apps/kit/src/lib/i18n/i18n-types.ts77
-rw-r--r--apps/kit/src/lib/i18n/i18n-util.async.ts4
-rw-r--r--apps/kit/src/lib/i18n/i18n-util.sync.ts6
-rw-r--r--apps/kit/src/lib/i18n/i18n-util.ts3
-rw-r--r--apps/kit/src/lib/i18n/nb/app/index.ts8
-rw-r--r--apps/kit/src/lib/i18n/nb/index.ts50
6 files changed, 109 insertions, 39 deletions
diff --git a/apps/kit/src/lib/i18n/i18n-types.ts b/apps/kit/src/lib/i18n/i18n-types.ts
index 8383731..0df6d1a 100644
--- a/apps/kit/src/lib/i18n/i18n-types.ts
+++ b/apps/kit/src/lib/i18n/i18n-types.ts
@@ -7,6 +7,7 @@ export type BaseLocale = 'en'
export type Locales =
| 'en'
+ | 'nb'
export type Translation = RootTranslation & DisallowNamespaces
@@ -17,163 +18,163 @@ export type Translations = RootTranslation &
type RootTranslation = {
/**
- * Or
+ * O​r
*/
or: string
/**
- * Email address
+ * E​m​a​i​l​ ​a​d​d​r​e​s​s
*/
emailAddress: string
/**
- * Password
+ * P​a​s​s​w​o​r​d
*/
password: string
/**
- * Page not found
+ * P​a​g​e​ ​n​o​t​ ​f​o​u​n​d
*/
pageNotFound: string
/**
- * It seems like your device does not have a internet connection, please check your connection.
+ * I​t​ ​s​e​e​m​s​ ​l​i​k​e​ ​y​o​u​r​ ​d​e​v​i​c​e​ ​d​o​e​s​ ​n​o​t​ ​h​a​v​e​ ​a​ ​i​n​t​e​r​n​e​t​ ​c​o​n​n​e​c​t​i​o​n​,​ ​p​l​e​a​s​e​ ​c​h​e​c​k​ ​y​o​u​r​ ​c​o​n​n​e​c​t​i​o​n​.
*/
noInternet: string
/**
- * Reset
+ * R​e​s​e​t
*/
reset: string
/**
- * {0} of {1}
+ * {​0​}​ ​o​f​ ​{​1​}
* @param {unknown} 0
* @param {unknown} 1
*/
of: RequiredParams<'0' | '1'>
/**
- * {0} is required
+ * {​0​}​ ​i​s​ ​r​e​q​u​i​r​e​d
* @param {unknown} 0
*/
isRequired: RequiredParams<'0'>
/**
- * Submit
+ * S​u​b​m​i​t
*/
submit: string
/**
- * Success
+ * S​u​c​c​e​s​s
*/
success: string
/**
- * Try again soon
+ * T​r​y​ ​a​g​a​i​n​ ​s​o​o​n
*/
tryAgainSoon: string
/**
- * Create a new account
+ * C​r​e​a​t​e​ ​a​ ​n​e​w​ ​a​c​c​o​u​n​t
*/
createANewAccount: string
/**
- * An unexpected error occured
+ * A​n​ ​u​n​e​x​p​e​c​t​e​d​ ​e​r​r​o​r​ ​o​c​c​u​r​e​d
*/
unexpectedError: string
/**
- * Not found
+ * N​o​t​ ​f​o​u​n​d
*/
notFound: string
/**
- * Documentation
+ * D​o​c​u​m​e​n​t​a​t​i​o​n
*/
documentation: string
/**
- * Terms of service
+ * T​e​r​m​s​ ​o​f​ ​s​e​r​v​i​c​e
*/
tos: string
/**
- * Privacy policy
+ * P​r​i​v​a​c​y​ ​p​o​l​i​c​y
*/
privacyPolicy: string
/**
- * Sign into your account
+ * S​i​g​n​ ​i​n​t​o​ ​y​o​u​r​ ​a​c​c​o​u​n​t
*/
signIntoYourAccount: string
signInPage: {
/**
- * This is not my computer
+ * T​h​i​s​ ​i​s​ ​n​o​t​ ​m​y​ ​c​o​m​p​u​t​e​r
*/
notMyComputer: string
/**
- * Reset password
+ * R​e​s​e​t​ ​p​a​s​s​w​o​r​d
*/
resetPassword: string
/**
- * Your password is updated
+ * Y​o​u​r​ ​p​a​s​s​w​o​r​d​ ​i​s​ ​u​p​d​a​t​e​d
*/
yourPasswordIsUpdated: string
/**
- * Sign In
+ * S​i​g​n​ ​I​n
*/
signIn: string
/**
- * Your new password is applied
+ * Y​o​u​r​ ​n​e​w​ ​p​a​s​s​w​o​r​d​ ​i​s​ ​a​p​p​l​i​e​d
*/
yourNewPasswordIsApplied: string
/**
- * Sign in below
+ * S​i​g​n​ ​i​n​ ​b​e​l​o​w
*/
signInBelow: string
/**
- * Your account is disabled
+ * Y​o​u​r​ ​a​c​c​o​u​n​t​ ​i​s​ ​d​i​s​a​b​l​e​d
*/
yourAccountIsDisabled: string
/**
- * Contact your administrator if this feels wrong
+ * C​o​n​t​a​c​t​ ​y​o​u​r​ ​a​d​m​i​n​i​s​t​r​a​t​o​r​ ​i​f​ ​t​h​i​s​ ​f​e​e​l​s​ ​w​r​o​n​g
*/
contactYourAdminIfDisabled: string
/**
- * You've reached the hidden inactivity limit
+ * Y​o​u​'​v​e​ ​r​e​a​c​h​e​d​ ​t​h​e​ ​h​i​d​d​e​n​ ​i​n​a​c​t​i​v​i​t​y​ ​l​i​m​i​t
*/
youHaveReachedInactivityLimit: string
/**
- * Feel free to sign in again
+ * F​e​e​l​ ​f​r​e​e​ ​t​o​ ​s​i​g​n​ ​i​n​ ​a​g​a​i​n
*/
feelFreeToSignInAgain: string
}
signUpPage: {
/**
- * Create your new account
+ * C​r​e​a​t​e​ ​y​o​u​r​ ​n​e​w​ ​a​c​c​o​u​n​t
*/
createYourNewAccount: string
}
resetPasswordPage: {
/**
- * Set a new password
+ * S​e​t​ ​a​ ​n​e​w​ ​p​a​s​s​w​o​r​d
*/
setANewPassword: string
/**
- * Expired
+ * E​x​p​i​r​e​d
*/
expired: string
/**
- * Your request has expired
+ * Y​o​u​r​ ​r​e​q​u​e​s​t​ ​h​a​s​ ​e​x​p​i​r​e​d
*/
requestHasExpired: string
/**
- * Request a new reset
+ * R​e​q​u​e​s​t​ ​a​ ​n​e​w​ ​r​e​s​e​t
*/
requestANewReset: string
/**
- * New password
+ * N​e​w​ ​p​a​s​s​w​o​r​d
*/
newPassword: string
/**
- * If we find your email address in our systems, you will receive an email with instructions on how to set a new password for your account.
+ * I​f​ ​w​e​ ​f​i​n​d​ ​y​o​u​r​ ​e​m​a​i​l​ ​a​d​d​r​e​s​s​ ​i​n​ ​o​u​r​ ​s​y​s​t​e​m​s​,​ ​y​o​u​ ​w​i​l​l​ ​r​e​c​e​i​v​e​ ​a​n​ ​e​m​a​i​l​ ​w​i​t​h​ ​i​n​s​t​r​u​c​t​i​o​n​s​ ​o​n​ ​h​o​w​ ​t​o​ ​s​e​t​ ​a​ ​n​e​w​ ​p​a​s​s​w​o​r​d​ ​f​o​r​ ​y​o​u​r​ ​a​c​c​o​u​n​t​.
*/
requestSentMessage: string
/**
- * Request a password reset
+ * R​e​q​u​e​s​t​ ​a​ ​p​a​s​s​w​o​r​d​ ​r​e​s​e​t
*/
requestAPasswordReset: string
/**
- * Your request was not found
+ * Y​o​u​r​ ​r​e​q​u​e​s​t​ ​w​a​s​ ​n​o​t​ ​f​o​u​n​d
*/
requestNotFound: string
/**
- * Submit a new reset request below
+ * S​u​b​m​i​t​ ​a​ ​n​e​w​ ​r​e​s​e​t​ ​r​e​q​u​e​s​t​ ​b​e​l​o​w
*/
submitANewRequestBelow: string
}
diff --git a/apps/kit/src/lib/i18n/i18n-util.async.ts b/apps/kit/src/lib/i18n/i18n-util.async.ts
index 3e8fa1b..00b8e0a 100644
--- a/apps/kit/src/lib/i18n/i18n-util.async.ts
+++ b/apps/kit/src/lib/i18n/i18n-util.async.ts
@@ -7,11 +7,15 @@ import { loadedFormatters, loadedLocales, locales } from './i18n-util'
const localeTranslationLoaders = {
en: () => import('./en'),
+ nb: () => import('./nb'),
}
const localeNamespaceLoaders = {
en: {
app: () => import('./en/app')
+ },
+ nb: {
+ app: () => import('./nb/app')
}
}
diff --git a/apps/kit/src/lib/i18n/i18n-util.sync.ts b/apps/kit/src/lib/i18n/i18n-util.sync.ts
index 8f749c7..8144fdc 100644
--- a/apps/kit/src/lib/i18n/i18n-util.sync.ts
+++ b/apps/kit/src/lib/i18n/i18n-util.sync.ts
@@ -6,14 +6,20 @@ import type { Locales, Translations } from './i18n-types'
import { loadedFormatters, loadedLocales, locales } from './i18n-util'
import en from './en'
+import nb from './nb'
import en_app from './en/app'
+import nb_app from './nb/app'
const localeTranslations = {
en: {
...en,
app: en_app
},
+ nb: {
+ ...nb,
+ app: nb_app
+ },
}
export const loadLocale = (locale: Locales): void => {
diff --git a/apps/kit/src/lib/i18n/i18n-util.ts b/apps/kit/src/lib/i18n/i18n-util.ts
index 09b0155..35f023c 100644
--- a/apps/kit/src/lib/i18n/i18n-util.ts
+++ b/apps/kit/src/lib/i18n/i18n-util.ts
@@ -9,7 +9,8 @@ import type { Formatters, Locales, Namespaces, Translations, TranslationFunction
export const baseLocale: Locales = 'en'
export const locales: Locales[] = [
- 'en'
+ 'en',
+ 'nb'
]
export const namespaces: Namespaces[] = [
diff --git a/apps/kit/src/lib/i18n/nb/app/index.ts b/apps/kit/src/lib/i18n/nb/app/index.ts
new file mode 100644
index 0000000..15d0b9a
--- /dev/null
+++ b/apps/kit/src/lib/i18n/nb/app/index.ts
@@ -0,0 +1,8 @@
+import type { NamespaceAppTranslation } from '../../i18n-types'
+
+const nb_app: NamespaceAppTranslation = {
+ // TODO: insert translations
+
+}
+
+export default nb_app
diff --git a/apps/kit/src/lib/i18n/nb/index.ts b/apps/kit/src/lib/i18n/nb/index.ts
new file mode 100644
index 0000000..6ddc6ad
--- /dev/null
+++ b/apps/kit/src/lib/i18n/nb/index.ts
@@ -0,0 +1,50 @@
+import type { Translation } from "../i18n-types";
+
+const nb: Translation = {
+ or: "Eller",
+ emailAddress: "E-postadresse",
+ password: "Passord",
+ pageNotFound: "Fant ikke siden",
+ noInternet: "Det ser ut som at du ikke tilkoblet internettet, sjekk tilkoblingen din for å fortsette",
+ reset: "Tilbakestill",
+ of: "{0} av {1}",
+ isRequired: "{0} er påkrevd",
+ submit: "Send",
+ success: "Suksess",
+ tryAgainSoon: "Prøv igjen snart",
+ createANewAccount: "Lag en ny konto",
+ unexpectedError: "En uventet feil oppstod",
+ notFound: "Ikke funnet",
+ documentation: "Dokumentasjon",
+ tos: "Bruksvilkår",
+ privacyPolicy: "Personvernerklæring",
+ signIntoYourAccount: "Logg inn med din konto",
+ signInPage: {
+ notMyComputer: "Dette er ikke min datamaskin",
+ resetPassword: "Tilbakestill passord",
+ yourPasswordIsUpdated: "Ditt passord er oppdater",
+ signIn: "Logg inn",
+ yourNewPasswordIsApplied: "Ditt nye passord er satt",
+ signInBelow: "Logg inn nedenfor",
+ yourAccountIsDisabled: "Din konto er deaktivert",
+ contactYourAdminIfDisabled: "Ta kontakt med din administrator hvis dette føles feil",
+ youHaveReachedInactivityLimit: "Du har nådd den hemmelige inaktivitetsgrensen",
+ feelFreeToSignInAgain: "Logg gjerne inn igjen"
+ },
+ signUpPage: {
+ createYourNewAccount: "Opprett din nye konto",
+ },
+ resetPasswordPage: {
+ setANewPassword: "Skriv et nytt passord",
+ expired: "Utgått",
+ requestHasExpired: "Din forespørsel er utgått",
+ requestANewReset: "Spør om en ny tilbakestillingslenke",
+ newPassword: "Nytt passord",
+ requestSentMessage: "Hvis vi finner e-postadressen din i våre systemer, vil du få en e-post med instrukser for å sette ditt nye passord.",
+ requestAPasswordReset: "Forespør tilbakestilling av ditt passord",
+ requestNotFound: "Din forespørsel ble ikke funnet",
+ submitANewRequestBelow: "Spør om en ny tilbakestillingslenke nedenfor"
+ }
+}
+
+export default nb; \ No newline at end of file