Refactor authentication and internationalize metadata

This commit simplifies the authentication mechanism by directly comparing user ID and primary owner ID while refactoring the Team Account container. Simultaneously, it internationalizes the metadata of several pages by creating server I18n instances for title translations, ensuring better support for varied languages.
This commit is contained in:
giancarlo
2024-03-28 22:14:54 +08:00
parent efd2a757ff
commit 260f7b3295
11 changed files with 88 additions and 16 deletions

View File

@@ -8,6 +8,9 @@
"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",

View File

@@ -1,4 +1,7 @@
{
"home": {
"pageTitle": "Home"
},
"settings": {
"pageTitle": "Settings",
"pageDescription": "Manage your Team details",
@@ -9,6 +12,12 @@
"dangerZone": "Danger Zone",
"dangerZoneDescription": "This section contains actions that are irreversible"
},
"members": {
"pageTitle": "Members"
},
"billing": {
"pageTitle": "Billing"
},
"yourTeams": "Your Teams",
"createTeam": "Create a Team",
"personalAccount": "Personal Account",