Skip to content

Commit 6c070b2

Browse files
eli6wlee221
andauthored
Added Swedish as supported language to Authenticator (#1157)
* Added swedish translation * added swedish as supported language to docs * small translation improvement * Added a missing translation and fixed an erroneous uppercase * Added a missing translation and fixed an erroneous uppercase * Create chilly-beers-report.md Co-authored-by: William Lee <43682783+wlee221@users.noreply.github.com>
1 parent 3e88dfb commit 6c070b2

File tree

6 files changed

+64
-0
lines changed

6 files changed

+64
-0
lines changed

Diff for: .changeset/chilly-beers-report.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@aws-amplify/ui": patch
3+
---
4+
5+
Added Swedish as supported language to Authenticator

Diff for: docs/src/pages/components/authenticator/index.page.mdx

+1
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ The `Authenticator` ships with [translations](https://github.com/aws-amplify/amp
429429
- `pl` - Polish
430430
- `pt` – Portuguese
431431
- `es` – Spanish
432+
- `sv` – Swedish
432433

433434
These [translations](https://github.com/aws-amplify/amplify-ui/blob/main/packages/ui/src/i18n/translations.ts) can be customized using the [Amplify JS' `I18n`](https://docs.amplify.aws/lib/utilities/i18n/q/platform/js/) module:
434435

Diff for: packages/ui/src/i18n/dictionaries/authenticator/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export { nlDict } from './nl';
1010
export { plDict } from './pl';
1111
export { ptDict } from './pt';
1212
export { zhDict } from './zh';
13+
export { svDict } from './sv';
1314

1415
// default text phrases
1516
export { defaultTexts } from './defaultTexts';
+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
export const svDict = {
2+
'Account recovery requires verified contact information':
3+
'För att återställa kontot behöver du ett verifierat konto',
4+
'An account with the given email already exists.':
5+
'Det finns redan ett konto med denna e-postadress',
6+
'Back to Sign In': 'Tillbaka till inloggningen',
7+
'Change Password': 'Byt lösenord',
8+
'Confirm Password': 'Bekräfta lösenord',
9+
Code: 'Kod',
10+
Confirm: 'Bekräfta',
11+
'Confirm a Code': 'Bekräfta koden',
12+
'Confirm Sign In': 'Bekräfta inloggning',
13+
'Confirm Sign Up': 'Bekräfta registrering',
14+
'Confirmation Code': 'Verifikationskod',
15+
'Create a new account': 'Skapa ett nytt konto',
16+
'Create account': 'Skapa konto',
17+
'Create Account': 'Skapa konto',
18+
Email: 'E-post',
19+
'Enter your password': 'Ange ditt lösenord',
20+
'Enter your username': 'Ange ditt användarnamn',
21+
'Forgot Password': 'Glömt lösenordet',
22+
'Forgot your password?': 'Glömt ditt lösenord? ',
23+
'Have an account? ': 'Redan registrerad? ',
24+
'Incorrect username or password': 'Felaktigt användarnamn eller lösenord',
25+
'Invalid password format': 'Ogiltigt lösenordsformat',
26+
'Invalid phone number format': `Ogiltigt format för telefonnummer`,
27+
'Lost your code? ': 'Förlorat koden? ',
28+
'New Password': 'Nytt lösenord',
29+
'No account? ': 'Inget konto? ',
30+
or: 'eller',
31+
Password: 'Lösenord',
32+
'Password attempts exceeded':
33+
'Maximalt antal felaktiga inloggningsförsök har uppnåtts',
34+
'Phone Number': 'Telefonnummer',
35+
'Resend Code': 'Skicka koden igen',
36+
'Reset password': 'Återställ lösenord',
37+
'Reset your password': 'Återställ ditt lösenord',
38+
'Send code': 'Skicka kod',
39+
'Sign in': 'Logga in',
40+
'Sign In': 'Logga in',
41+
'Sign in to your account': 'Logga in till ditt konto',
42+
'Sign Out': 'Logga ut',
43+
'Sign Up': 'Registrering',
44+
'We Emailed You': 'Vi har skickat e-post till dig',
45+
'Enter your code': 'Skriv din kod',
46+
Skip: 'Hoppa över',
47+
Submit: 'Skicka',
48+
'User already exists': 'Användaren finns redan',
49+
'User does not exist': 'Användaren finns inte',
50+
Username: 'Användarnamn',
51+
'Username cannot be empty': 'Användarnamnet kan inte vara tomt',
52+
Verify: 'Verifiera',
53+
'Verify Contact': 'Verifiera kontakt',
54+
};

Diff for: packages/ui/src/i18n/dictionaries/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const nlDict = { ...authenticatorDict.nlDict };
1212
export const plDict = { ...authenticatorDict.plDict };
1313
export const ptDict = { ...authenticatorDict.ptDict };
1414
export const zhDict = { ...authenticatorDict.zhDict };
15+
export const svDict = { ...authenticatorDict.svDict };
1516

1617
export const defaultTexts = {
1718
...authenticatorDict.defaultTexts,

Diff for: packages/ui/src/i18n/translations.ts

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
plDict,
2525
ptDict,
2626
zhDict,
27+
svDict,
2728
defaultTexts,
2829
} from './dictionaries';
2930

@@ -83,4 +84,5 @@ export const translations: Record<string, Dict> = {
8384
pl: plDict,
8485
pt: ptDict,
8586
zh: zhDict,
87+
sv: svDict,
8688
};

0 commit comments

Comments
 (0)