Refactor language switcher and enhance site routing

Renamed 'LanguageDropdownSwitcher' to 'LanguageSelector' for better representation of the component's functionality. Removed unnecessary dependencies and optimized function declarations. Updated site routing to include new pages like 'contact', 'terms-of-service', and 'privacy-policy'. Also made adjustments for multi-language support, providing better user experience.
This commit is contained in:
giancarlo
2024-04-10 21:23:41 +08:00
parent 67139d069f
commit 69942ec243
13 changed files with 124 additions and 27 deletions

View File

@@ -5,18 +5,12 @@
"emailTabTabSubheading": "Update your email address",
"passwordTab": "Password",
"passwordTabSubheading": "Update your password",
"manageConnectedAccounts": "Connected Accounts",
"manageConnectedAccountsSubheading": "Manage your connected accounts",
"connectedAccounts": "Connected Accounts",
"homePage": "Home",
"billingTab": "Billing",
"settingsTab": "Settings",
"authenticationTab": "Authentication",
"multiFactorAuth": "Multi-Factor Authentication",
"multiFactorAuthDescription": "Set up Multi-Factor Authentication method to further secure your account",
"connectedAccountsSubheading": "Below are the accounts linked to your profile",
"availableProviders": "Available Providers",
"availableProvidersSubheading": "Click on the providers below to link your profile to the provider",
"multiFactorAuthDescription": "Set up Multi-Factor Authentication method to further secure your account",
"updateProfileSuccess": "Profile successfully updated",
"updateProfileError": "Encountered an error. Please try again",
"updatePasswordSuccess": "Password update request successful",
@@ -141,5 +135,7 @@
"deleteProfileConfirmationInputLabel": "Type DELETE to confirm",
"deleteAccountErrorHeading": "Sorry, we couldn't delete your account",
"needsReauthentication": "Reauthentication Required",
"needsReauthenticationDescription": "You need to reauthenticate to change your password. Please sign out and sign in again to change your password."
"needsReauthenticationDescription": "You need to reauthenticate to change your password. Please sign out and sign in again to change your password.",
"language": "Language",
"languageDescription": "Choose your preferred language"
}

View File

@@ -4,6 +4,7 @@
"signInHeading": "Sign in to your account",
"signIn": "Sign In",
"getStarted": "Get started",
"updatePassword": "Update Password",
"signOut": "Sign out",
"signingIn": "Signing in...",
"signingUp": "Signing up...",

View File

@@ -14,7 +14,7 @@
"about": "About",
"product": "Product",
"legal": "Legal",
"tos": "Terms of Service",
"termsOfService": "Terms of Service",
"cookiePolicy": "Cookie Policy",
"privacyPolicy": "Privacy Policy"
}