Skip to content

Commit

Permalink
Add support for Norwegian to Authenticator (#3595)
Browse files Browse the repository at this point in the history
Capitalize "email" to show translation correctly
---------

Co-authored-by: Scott Rees <6165315+reesscot@users.noreply.github.com>
  • Loading branch information
Majid-J and reesscot committed May 19, 2023
1 parent a01c6f7 commit 6242513
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/twelve-actors-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@aws-amplify/ui': patch
---

Added Norwegian as a supported language to Authenticator.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The `Authenticator` ships with [translations](https://github.com/aws-amplify/amp
- `it` – Italian
- `ja` – Japanese
- `ko` – Korean
- `nb` - Norwegian
- `pl` – Polish
- `pt` – Portuguese
- `ru` – Russian
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/i18n/dictionaries/authenticator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export { frDict } from './fr';
export { itDict } from './it';
export { jaDict } from './ja';
export { krDict } from './kr';
export { nbDict } from './nb';
export { nlDict } from './nl';
export { plDict } from './pl';
export { ptDict } from './pt';
Expand Down
102 changes: 102 additions & 0 deletions packages/ui/src/i18n/dictionaries/authenticator/nb.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
import { AuthenticatorDictionary } from './types';

export const nbDict: AuthenticatorDictionary = {
'Account recovery requires verified contact information':
'Gjenoppretting av konto krever verifisert kontaktinformajson',
'Add your Profile': 'Legg til profilen din',
'Add your Website': 'Legg til nettsiden din',
'Back to Sign In': 'Tilbake til innlogging',
'Change Password': 'Bytt passord',
Changing: 'Endre',
Code: 'Kode',
'Confirm Password': 'Bekreft passordet',
'Confirm Sign Up': 'Bekreft registrering',
'Confirm SMS Code': 'Bekreft SMS-kode',
'Confirm TOTP Code': 'Bekreft TOTP-kode',
Confirm: 'Bekreft',
'Confirmation Code': 'Bekreftelseskode',
Confirming: 'Bekrefter',
'Create a new account': 'Opprett en ny konto',
'Create Account': 'Opprett konto',
'Creating Account': 'Oppretter konto',
'Dismiss alert': 'Avvis varsel',
Email: 'E-post',
'Enter your Birthdate': 'Skriv inn fødselsdatoen din',
'Enter your code': 'Skriv inn koden din',
'Enter your Confirmation Code': 'Skriv inn bekreftelseskoden din',
'Enter your email': 'Skriv inn e-postadressen din',
'Enter your Email': 'Skriv inn e-postadressen din',
'Enter your Family Name': 'Skriv inn etternavnet ditt',
'Enter your Given Name': 'Skriv inn fornavnet ditt',
'Enter your Middle Name': 'Skriv inn mellomnavnet ditt',
'Enter your Name': 'Skriv inn navnet ditt',
'Enter your Nickname': 'Skriv inn kallenavnet ditt',
'Enter your Password': 'Skriv inn passordet ditt',
'Enter your phone number': 'Skriv inn telefonnummeret ditt',
'Enter your Preferred Username': 'Skriv inn det foretrukne brukernavnet ditt',
'Enter your username': 'Skriv inn brukernavnet ditt',
'Forgot password?': 'Glemt passord?',
'Forgot your password?': 'Glemt passordet ditt?',
'Hide password': 'Skjul passordet',
'It may take a minute to arrive': 'Det kan ta et minutt for å komme frem',
Loading: 'Laster inn',
'New password': 'Nytt passord',
or: 'eller',
Password: 'Passord',
'Phone Number': 'Telefonnummer',
'Please confirm your Password': 'Vennligst bekreft passordet ditt',
'Resend Code': 'Send koden på nytt',
'Reset your password': 'Nullstill passordet ditt',
'Reset your Password': 'Nullstill passordet ditt',
'Send code': 'Send kode',
'Send Code': 'Send kode',
Sending: 'Sender',
'Setup TOTP': 'Konfigurer TOTP',
'Show password': 'Vis passordet',
'Sign in to your account': 'Logg inn på kontoen din',
'Sign In with Amazon': 'Logg inn med Amazon',
'Sign In with Apple': 'Logg inn med Apple',
'Sign In with Facebook': 'Logg inn med Facebook',
'Sign In with Google': 'Logg inn med Google',
'Sign in': 'Logg inn',
'Sign In': 'Logg inn',
'Signing in': 'Logger inn',
Skip: 'Hopp over',
Submit: 'Send inn',
Submitting: 'Sender inn',
Username: 'Brukernavn',
'Verify Contact': 'Bekreft kontakt',
Verify: 'Bekreft',
'We Emailed You': 'Vi sendte deg en e-post',
'We Sent A Code': 'Vi sendte en kode',
'We Texted You': 'Vi sendte deg en tekstmelding',
'Your code is on the way. To log in, enter the code we emailed to':
'Koden din er på vei. For å logge inn, skriv inn koden vi sendte e-post til',
'Your code is on the way. To log in, enter the code we sent you':
'Koden din er på vei. For å logge inn, skriv inn koden vi sendte deg',
'Your code is on the way. To log in, enter the code we texted to':
'Koden din er på vei. For å logge inn, skriv inn koden vi sendte tekstmelding til',

// Additional translations provided by customers
'An account with the given email already exists.':
'Det finnes allerede en konto med denne e-postadressen',
'Confirm a Code': 'Bekreft koden',
'Confirm Sign In': 'Bekreft innlogging',
'Create account': 'Opprett konto',
'Enter your password': 'Skriv inn passordet ditt',
'Forgot Password': 'Glemt passordet',
'Have an account? ': 'Har en konto allerede? ',
'Incorrect username or password': 'Feil brukernavn eller passord',
'Invalid password format': 'Ugyldig passordformat',
'Invalid phone number format': 'Ugyldig telefonnummerformat',
'Lost your code? ': 'Mistet koden? ',
'New Password': 'Nytt passord',
'No account? ': 'Ingen konto? ',
'Password attempts exceeded': 'For mange mislykkede passordforsøk',
'Reset password': 'Nullstill passord',
'Sign Out': 'Logg ut',
'Sign Up': 'Registrering',
'User already exists': 'Brukeren finnes allerede',
'User does not exist': 'Brukeren finnes ikke',
'Username cannot be empty': 'Brukernavnet kan ikke være tomt',
};
1 change: 1 addition & 0 deletions packages/ui/src/i18n/dictionaries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const frDict = { ...authenticatorDict.frDict };
export const itDict = { ...authenticatorDict.itDict };
export const jaDict = { ...authenticatorDict.jaDict };
export const krDict = { ...authenticatorDict.krDict };
export const nbDict = { ...authenticatorDict.nbDict };
export const nlDict = { ...authenticatorDict.nlDict };
export const plDict = { ...authenticatorDict.plDict };
export const ptDict = { ...authenticatorDict.ptDict };
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/i18n/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
itDict,
jaDict,
krDict,
nbDict,
nlDict,
plDict,
ptDict,
Expand Down Expand Up @@ -88,6 +89,7 @@ export const translations: Record<string, Dict> = {
// TODO: remove kr in next major release
kr: krDict,
ko: krDict,
nb: nbDict,
nl: nlDict,
pl: plDict,
pt: ptDict,
Expand Down

0 comments on commit 6242513

Please sign in to comment.