Skip to content

Commit 6e67ab6

Browse files
authored
i18n Thai Authenticator (#5436)
1 parent 06dad0d commit 6e67ab6

File tree

5 files changed

+120
-0
lines changed

5 files changed

+120
-0
lines changed

.changeset/cool-baboons-whisper.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@aws-amplify/ui': minor
3+
---
4+
5+
i18n Authenticator in Thai.
6+
Localization of Authenticator in the Thai Language.
7+
Added a new language using the ISO code 'th'
8+
Created a new dictionary for Authenticator strings, and localized with supervision of 3 Thai native speaker, verified by ChatGPT 4.o, Claude Sonnet 3.5, and Google Translate.

packages/ui/src/i18n/dictionaries/authenticator/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export { trDict } from './tr';
1717
export { ruDict } from './ru';
1818
export { heDict } from './he';
1919
export { uaDict } from './ua';
20+
export { thDict } from './th';
2021

2122
// default text phrases
2223
export { defaultTexts } from './defaultTexts';
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
import { AuthenticatorDictionary } from './types';
2+
3+
export const thDict: AuthenticatorDictionary = {
4+
'Account recovery requires verified contact information':
5+
'การกู้คืนบัญชีต้องมีข้อมูลติดต่อที่ได้รับการยืนยันแล้ว',
6+
'Add your Profile': 'เพิ่มโปรไฟล์ของคุณ',
7+
'Add your Website': 'เพิ่มเว็บไซต์ของคุณ',
8+
'Back to Sign In': 'กลับไปที่การเข้าสู่ระบบ',
9+
'Change Password': 'เปลี่ยนรหัสผ่าน',
10+
Changing: 'กำลังเปลี่ยน',
11+
Code: 'รหัส',
12+
'Confirm Password': 'ยืนยันรหัสผ่าน',
13+
'Please confirm your Password': 'กรุณายืนยันรหัสผ่านของคุณ',
14+
'Confirm Sign Up': 'ยืนยันการลงทะเบียน',
15+
'Confirm SMS Code': 'ยืนยันรหัส SMS',
16+
'Confirm MFA Code': 'ยืนยันรหัส MFA',
17+
'Confirm TOTP Code': 'ยืนยันรหัส TOTP',
18+
Confirm: 'ยืนยัน',
19+
'Confirmation Code': 'รหัสยืนยัน',
20+
Confirming: 'กำลังยืนยัน',
21+
'Create a new account': 'สร้างบัญชีใหม่',
22+
'Create Account': 'สร้างบัญชี',
23+
'Creating Account': 'กำลังสร้างบัญชี',
24+
'Dismiss alert': 'ปิดการแจ้งเตือน',
25+
Email: 'อีเมล',
26+
'Enter your Birthdate': 'กรอกวันเกิดของคุณ',
27+
'Enter your code': 'กรอกรหัสของคุณ',
28+
'Enter your Confirmation Code': 'กรอกรหัสยืนยันของคุณ',
29+
'Enter your Email': 'กรอกอีเมลของคุณ',
30+
'Enter your Family Name': 'กรอกนามสกุลของคุณ',
31+
'Enter your Given Name': 'กรอกชื่อของคุณ',
32+
'Enter your Middle Name': 'กรอกชื่อกลางของคุณ',
33+
'Enter your Name': 'กรอกชื่อของคุณ',
34+
'Enter your Nickname': 'กรอกชื่อเล่นของคุณ',
35+
'Enter your Password': 'กรอกรหัสผ่านของคุณ',
36+
'Enter your email': 'กรอกอีเมลของคุณ',
37+
'Enter your phone number': 'กรอกหมายเลขโทรศัพท์ของคุณ',
38+
'Enter your Preferred Username': 'กรอกชื่อผู้ใช้ที่ต้องการ',
39+
'Enter your username': 'กรอกชื่อผู้ใช้ของคุณ',
40+
'Forgot password?': 'ลืมรหัสผ่าน?',
41+
'Forgot your password?': 'ลืมรหัสผ่านใช่หรือไม่?',
42+
'Hide password': 'ซ่อนรหัสผ่าน',
43+
'It may take a minute to arrive': 'อาจใช้เวลาสักครู่',
44+
Loading: 'กำลังโหลด',
45+
'New password': 'รหัสผ่านใหม่',
46+
or: 'หรือ',
47+
Password: 'รหัสผ่าน',
48+
'Phone Number': 'หมายเลขโทรศัพท์',
49+
'Resend Code': 'ส่งรหัสอีกครั้ง',
50+
'Reset your Password': 'รีเซ็ตรหัสผ่านของคุณ',
51+
'Reset your password': 'รีเซ็ตรหัสผ่านของคุณ',
52+
'Send code': 'ส่งรหัส',
53+
'Send Code': 'ส่งรหัส',
54+
Sending: 'กำลังส่ง',
55+
'Setup TOTP': 'ตั้งค่า TOTP',
56+
'Show password': 'แสดงรหัสผ่าน',
57+
'Sign in to your account': 'เข้าสู่ระบบบัญชีของคุณ',
58+
'Sign In with Amazon': 'เข้าสู่ระบบด้วย Amazon',
59+
'Sign In with Apple': 'เข้าสู่ระบบด้วย Apple',
60+
'Sign In with Facebook': 'เข้าสู่ระบบด้วย Facebook',
61+
'Sign In with Google': 'เข้าสู่ระบบด้วย Google',
62+
'Sign in': 'เข้าสู่ระบบ',
63+
'Sign In': 'เข้าสู่ระบบ',
64+
'Signing in': 'กำลังเข้าสู่ระบบ',
65+
Skip: 'ข้าม',
66+
Submit: 'ส่ง',
67+
Submitting: 'กำลังส่ง',
68+
Username: 'ชื่อผู้ใช้',
69+
'Verify Contact': 'ยืนยันการติดต่อ',
70+
Verify: 'ยืนยัน',
71+
'We Emailed You': 'เราได้ส่งอีเมลถึงคุณแล้ว',
72+
'We Sent A Code': 'เราได้ส่งรหัสแล้ว',
73+
'We Texted You': 'เราได้ส่ง SMS ถึงคุณแล้ว',
74+
'Your code is on the way. To log in, enter the code we emailed to':
75+
'รหัสของคุณกำลังมา เพื่อเข้าสู่ระบบ กรุณากรอกรหัสที่เราส่งไปยังอีเมล',
76+
'Your code is on the way. To log in, enter the code we sent you':
77+
'รหัสของคุณกำลังมา เพื่อเข้าสู่ระบบ กรุณากรอกรหัสที่เราส่งให้คุณ',
78+
'Your code is on the way. To log in, enter the code we texted to':
79+
'รหัสของคุณกำลังมา เพื่อเข้าสู่ระบบ กรุณากรอกรหัสที่เราส่งไปยัง SMS',
80+
81+
// Additional translations
82+
'An account with the given email already exists.':
83+
'บัญชีที่ใช้อีเมลนี้มีอยู่แล้ว',
84+
'Confirm a Code': 'ยืนยันรหัส',
85+
'Confirm Sign In': 'ยืนยันการเข้าสู่ระบบ',
86+
'Create account': 'สร้างบัญชี',
87+
'Sign Up with Facebook': 'ลงทะเบียนด้วย Facebook',
88+
'Sign Up with Google': 'ลงทะเบียนด้วย Google',
89+
'Sign Up with Apple': 'ลงทะเบียนด้วย Apple',
90+
'Sign Up with Line': 'ลงทะเบียนด้วย Line',
91+
'Forgot Password': 'ลืมรหัสผ่าน',
92+
'Have an account? ': 'มีบัญชีอยู่แล้ว? ',
93+
'Incorrect username or password': 'ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง',
94+
'Invalid password format': 'รูปแบบรหัสผ่านไม่ถูกต้อง',
95+
'It may take a minute to arrive.': 'อาจใช้เวลาสักครู่ในการมาถึง',
96+
'Lost your code? ': 'หารหัสไม่เจอ? ',
97+
'New Password': 'รหัสผ่านใหม่',
98+
'No account? ': 'ไม่มีบัญชี? ',
99+
'Password attempts exceeded': 'เกินจำนวนครั้งที่อนุญาตให้ใส่รหัสผ่าน',
100+
'Reset password': 'รีเซ็ตรหัสผ่าน',
101+
'Reset Password': 'รีเซ็ตรหัสผ่าน',
102+
'Sign Out': 'ออกจากระบบ',
103+
'Sign Up': 'ลงทะเบียน',
104+
'User already exists': 'ผู้ใช้นี้มีอยู่แล้ว',
105+
'User does not exist': 'ไม่มีผู้ใช้นี้',
106+
'Username cannot be empty': 'ต้องใส่ชื่อผู้ใช้งาน',
107+
};

packages/ui/src/i18n/dictionaries/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export const trDict = { ...authenticatorDict.trDict };
2121
export const ruDict = { ...authenticatorDict.ruDict };
2222
export const heDict = { ...authenticatorDict.heDict };
2323
export const uaDict = { ...authenticatorDict.uaDict };
24+
export const thDict = { ...authenticatorDict.thDict };
25+
2426

2527
export const defaultTexts = {
2628
...authenticatorDict.defaultTexts,

packages/ui/src/i18n/translations.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import {
3131
defaultTexts,
3232
heDict,
3333
uaDict,
34+
thDict,
3435
} from './dictionaries';
3536

3637
/**
@@ -98,4 +99,5 @@ export const translations: Record<string, Dict> = {
9899
ru: ruDict,
99100
he: heDict,
100101
ua: uaDict,
102+
th: thDict,
101103
};

0 commit comments

Comments
 (0)