From 6e67ab6beb65e8ac7c7db6c6586df3c4f219bdbf Mon Sep 17 00:00:00 2001 From: LannaAI <138058952+vLannaAi@users.noreply.github.com> Date: Thu, 22 Aug 2024 02:17:13 +0700 Subject: [PATCH] i18n Thai Authenticator (#5436) --- .changeset/cool-baboons-whisper.md | 8 ++ .../i18n/dictionaries/authenticator/index.ts | 1 + .../src/i18n/dictionaries/authenticator/th.ts | 107 ++++++++++++++++++ packages/ui/src/i18n/dictionaries/index.ts | 2 + packages/ui/src/i18n/translations.ts | 2 + 5 files changed, 120 insertions(+) create mode 100644 .changeset/cool-baboons-whisper.md create mode 100644 packages/ui/src/i18n/dictionaries/authenticator/th.ts diff --git a/.changeset/cool-baboons-whisper.md b/.changeset/cool-baboons-whisper.md new file mode 100644 index 00000000000..10607ae18e0 --- /dev/null +++ b/.changeset/cool-baboons-whisper.md @@ -0,0 +1,8 @@ +--- +'@aws-amplify/ui': minor +--- + +i18n Authenticator in Thai. +Localization of Authenticator in the Thai Language. +Added a new language using the ISO code 'th' +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. diff --git a/packages/ui/src/i18n/dictionaries/authenticator/index.ts b/packages/ui/src/i18n/dictionaries/authenticator/index.ts index f95b3aaa56c..087e9081bad 100644 --- a/packages/ui/src/i18n/dictionaries/authenticator/index.ts +++ b/packages/ui/src/i18n/dictionaries/authenticator/index.ts @@ -17,6 +17,7 @@ export { trDict } from './tr'; export { ruDict } from './ru'; export { heDict } from './he'; export { uaDict } from './ua'; +export { thDict } from './th'; // default text phrases export { defaultTexts } from './defaultTexts'; diff --git a/packages/ui/src/i18n/dictionaries/authenticator/th.ts b/packages/ui/src/i18n/dictionaries/authenticator/th.ts new file mode 100644 index 00000000000..845bf5510f6 --- /dev/null +++ b/packages/ui/src/i18n/dictionaries/authenticator/th.ts @@ -0,0 +1,107 @@ +import { AuthenticatorDictionary } from './types'; + +export const thDict: AuthenticatorDictionary = { + 'Account recovery requires verified contact information': + 'การกู้คืนบัญชีต้องมีข้อมูลติดต่อที่ได้รับการยืนยันแล้ว', + 'Add your Profile': 'เพิ่มโปรไฟล์ของคุณ', + 'Add your Website': 'เพิ่มเว็บไซต์ของคุณ', + 'Back to Sign In': 'กลับไปที่การเข้าสู่ระบบ', + 'Change Password': 'เปลี่ยนรหัสผ่าน', + Changing: 'กำลังเปลี่ยน', + Code: 'รหัส', + 'Confirm Password': 'ยืนยันรหัสผ่าน', + 'Please confirm your Password': 'กรุณายืนยันรหัสผ่านของคุณ', + 'Confirm Sign Up': 'ยืนยันการลงทะเบียน', + 'Confirm SMS Code': 'ยืนยันรหัส SMS', + 'Confirm MFA Code': 'ยืนยันรหัส MFA', + 'Confirm TOTP Code': 'ยืนยันรหัส TOTP', + Confirm: 'ยืนยัน', + 'Confirmation Code': 'รหัสยืนยัน', + Confirming: 'กำลังยืนยัน', + 'Create a new account': 'สร้างบัญชีใหม่', + 'Create Account': 'สร้างบัญชี', + 'Creating Account': 'กำลังสร้างบัญชี', + 'Dismiss alert': 'ปิดการแจ้งเตือน', + Email: 'อีเมล', + 'Enter your Birthdate': 'กรอกวันเกิดของคุณ', + 'Enter your code': 'กรอกรหัสของคุณ', + 'Enter your Confirmation Code': 'กรอกรหัสยืนยันของคุณ', + 'Enter your Email': 'กรอกอีเมลของคุณ', + 'Enter your Family Name': 'กรอกนามสกุลของคุณ', + 'Enter your Given Name': 'กรอกชื่อของคุณ', + 'Enter your Middle Name': 'กรอกชื่อกลางของคุณ', + 'Enter your Name': 'กรอกชื่อของคุณ', + 'Enter your Nickname': 'กรอกชื่อเล่นของคุณ', + 'Enter your Password': 'กรอกรหัสผ่านของคุณ', + 'Enter your email': 'กรอกอีเมลของคุณ', + 'Enter your phone number': 'กรอกหมายเลขโทรศัพท์ของคุณ', + 'Enter your Preferred Username': 'กรอกชื่อผู้ใช้ที่ต้องการ', + 'Enter your username': 'กรอกชื่อผู้ใช้ของคุณ', + 'Forgot password?': 'ลืมรหัสผ่าน?', + 'Forgot your password?': 'ลืมรหัสผ่านใช่หรือไม่?', + 'Hide password': 'ซ่อนรหัสผ่าน', + 'It may take a minute to arrive': 'อาจใช้เวลาสักครู่', + Loading: 'กำลังโหลด', + 'New password': 'รหัสผ่านใหม่', + or: 'หรือ', + Password: 'รหัสผ่าน', + 'Phone Number': 'หมายเลขโทรศัพท์', + 'Resend Code': 'ส่งรหัสอีกครั้ง', + 'Reset your Password': 'รีเซ็ตรหัสผ่านของคุณ', + 'Reset your password': 'รีเซ็ตรหัสผ่านของคุณ', + 'Send code': 'ส่งรหัส', + 'Send Code': 'ส่งรหัส', + Sending: 'กำลังส่ง', + 'Setup TOTP': 'ตั้งค่า TOTP', + 'Show password': 'แสดงรหัสผ่าน', + 'Sign in to your account': 'เข้าสู่ระบบบัญชีของคุณ', + 'Sign In with Amazon': 'เข้าสู่ระบบด้วย Amazon', + 'Sign In with Apple': 'เข้าสู่ระบบด้วย Apple', + 'Sign In with Facebook': 'เข้าสู่ระบบด้วย Facebook', + 'Sign In with Google': 'เข้าสู่ระบบด้วย Google', + 'Sign in': 'เข้าสู่ระบบ', + 'Sign In': 'เข้าสู่ระบบ', + 'Signing in': 'กำลังเข้าสู่ระบบ', + Skip: 'ข้าม', + Submit: 'ส่ง', + Submitting: 'กำลังส่ง', + Username: 'ชื่อผู้ใช้', + 'Verify Contact': 'ยืนยันการติดต่อ', + Verify: 'ยืนยัน', + 'We Emailed You': 'เราได้ส่งอีเมลถึงคุณแล้ว', + 'We Sent A Code': 'เราได้ส่งรหัสแล้ว', + 'We Texted You': 'เราได้ส่ง SMS ถึงคุณแล้ว', + 'Your code is on the way. To log in, enter the code we emailed to': + 'รหัสของคุณกำลังมา เพื่อเข้าสู่ระบบ กรุณากรอกรหัสที่เราส่งไปยังอีเมล', + 'Your code is on the way. To log in, enter the code we sent you': + 'รหัสของคุณกำลังมา เพื่อเข้าสู่ระบบ กรุณากรอกรหัสที่เราส่งให้คุณ', + 'Your code is on the way. To log in, enter the code we texted to': + 'รหัสของคุณกำลังมา เพื่อเข้าสู่ระบบ กรุณากรอกรหัสที่เราส่งไปยัง SMS', + + // Additional translations + 'An account with the given email already exists.': + 'บัญชีที่ใช้อีเมลนี้มีอยู่แล้ว', + 'Confirm a Code': 'ยืนยันรหัส', + 'Confirm Sign In': 'ยืนยันการเข้าสู่ระบบ', + 'Create account': 'สร้างบัญชี', + 'Sign Up with Facebook': 'ลงทะเบียนด้วย Facebook', + 'Sign Up with Google': 'ลงทะเบียนด้วย Google', + 'Sign Up with Apple': 'ลงทะเบียนด้วย Apple', + 'Sign Up with Line': 'ลงทะเบียนด้วย Line', + 'Forgot Password': 'ลืมรหัสผ่าน', + 'Have an account? ': 'มีบัญชีอยู่แล้ว? ', + 'Incorrect username or password': 'ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง', + 'Invalid password format': 'รูปแบบรหัสผ่านไม่ถูกต้อง', + 'It may take a minute to arrive.': 'อาจใช้เวลาสักครู่ในการมาถึง', + 'Lost your code? ': 'หารหัสไม่เจอ? ', + 'New Password': 'รหัสผ่านใหม่', + 'No account? ': 'ไม่มีบัญชี? ', + 'Password attempts exceeded': 'เกินจำนวนครั้งที่อนุญาตให้ใส่รหัสผ่าน', + 'Reset password': 'รีเซ็ตรหัสผ่าน', + 'Reset Password': 'รีเซ็ตรหัสผ่าน', + 'Sign Out': 'ออกจากระบบ', + 'Sign Up': 'ลงทะเบียน', + 'User already exists': 'ผู้ใช้นี้มีอยู่แล้ว', + 'User does not exist': 'ไม่มีผู้ใช้นี้', + 'Username cannot be empty': 'ต้องใส่ชื่อผู้ใช้งาน', +}; \ No newline at end of file diff --git a/packages/ui/src/i18n/dictionaries/index.ts b/packages/ui/src/i18n/dictionaries/index.ts index e66318b6b37..27cdb95aa58 100644 --- a/packages/ui/src/i18n/dictionaries/index.ts +++ b/packages/ui/src/i18n/dictionaries/index.ts @@ -21,6 +21,8 @@ export const trDict = { ...authenticatorDict.trDict }; export const ruDict = { ...authenticatorDict.ruDict }; export const heDict = { ...authenticatorDict.heDict }; export const uaDict = { ...authenticatorDict.uaDict }; +export const thDict = { ...authenticatorDict.thDict }; + export const defaultTexts = { ...authenticatorDict.defaultTexts, diff --git a/packages/ui/src/i18n/translations.ts b/packages/ui/src/i18n/translations.ts index 7ce4d4ea665..7021a93c690 100644 --- a/packages/ui/src/i18n/translations.ts +++ b/packages/ui/src/i18n/translations.ts @@ -31,6 +31,7 @@ import { defaultTexts, heDict, uaDict, + thDict, } from './dictionaries'; /** @@ -98,4 +99,5 @@ export const translations: Record = { ru: ruDict, he: heDict, ua: uaDict, + th: thDict, };