diff --git a/frontend/i18n.js b/frontend/i18n.js
index 7c2945ea0..a0e18ebd5 100644
--- a/frontend/i18n.js
+++ b/frontend/i18n.js
@@ -1,9 +1,14 @@
+const workaround = require("next-translate/lib/cjs/plugin/utils.js");
+
+workaround.defaultLoader =
+ "(l, n) => import(`@next-translate-root/locales/${l}.json`).then(m => m?.default[n] ?? {} )";
+
module.exports = {
locales: ["en-US", "ko-KR"],
defaultLocale: "en-US",
pages: {
"*": ["common", "nav"],
- "reg:^/(login|signup)": ["auth"],
+ "rgx:^/(login|signup)": ["auth"],
"/dashboard/[id]": ["dashboard"],
},
};
diff --git a/frontend/locales/en-US.json b/frontend/locales/en-US.json
new file mode 100644
index 000000000..038291c6c
--- /dev/null
+++ b/frontend/locales/en-US.json
@@ -0,0 +1,87 @@
+{
+ "common": {
+ "error_project-already-exists": "A project with this name already exists.",
+ "need-login": " To use Infisical, please log in through a device with larger dimensions. ",
+ "email": "Email",
+ "password": "Password",
+ "verify": "Verify",
+ "first-name": "First Name",
+ "last-name": "Last Name",
+ "logout": "Log Out",
+ "validate-required": "Please input your {{name}}",
+ "password-validate": "Password should contain at least:",
+ "password-validate-length": "14 characters",
+ "password-validate-case": "1 lowercase character",
+ "password-validate-number": "1 number",
+ "maintenance-alert": "We are experiencing minor technical difficulties. We are working on solving it right now. Please come back in a few minutes.",
+ "click-to-copy": "Click to copy",
+ "project-id": "Project ID",
+ "save-changes": "Save Changes",
+ "drop-zone": "Drag and drop your .env file here.",
+ "drop-zone-keys": "Drag and drop your .env file here to add more keys."
+ },
+ "nav": {
+ "support": {
+ "slack": "[NEW] Join Slack Forum",
+ "docs": "Read Docs",
+ "issue": "Open a Github Issue",
+ "email": "Send us an Email"
+ },
+ "user": {
+ "signed-in-as": "SIGNED IN AS",
+ "current-organization": "CURRENT ORGANIZATION",
+ "usage-billing": "Usage & Billing",
+ "invite": "Invite Members",
+ "other-organizations": "OTHER ORGANIZATION"
+ },
+ "menu": {
+ "project": "PROJECT",
+ "secrets": "Secrets",
+ "members": "Members",
+ "integrations": "Integrations",
+ "project-settings": "Project Settings"
+ }
+ },
+ "auth": {
+ "meta": {
+ "login": {
+ "title": "Login | Infiscal",
+ "og-title": "Log In to Infisical",
+ "og-description": "Infisical a simple end-to-end encrypted platform that enables teams to sync and manage their .env files."
+ },
+ "signup": {
+ "title": "Sign Up | Infiscal",
+ "og-title": "Replace .env files with 1 line of code. Sign Up for Infisical in 3 minutes.",
+ "og-description": "Infisical a simple end-to-end encrypted platform that enables teams to sync and manage API-keys and environemntal variables. Works with Node.js, Next.js, Gatsby, Nest.js..."
+ }
+ },
+ "login": "Log In",
+ "signup": "Sign Up",
+ "need-account": "Need an Infisical account?",
+ "create-account": "Create an account",
+ "already-have-account": "Have an account? Log in",
+ "forgot-password": "Forgot your password?",
+ "step1-start": "Let's get started",
+ "step1-privacy": "By creating an account, you agree to our Terms and have read and acknowledged the Privacy Policy.",
+ "step1-submit": "Get Started",
+ "step2-message": "We've sent a verification email to{{email}}",
+ "step2-code-error": "Oops. Your code is wrong. Please try again.",
+ "step2-spam-alert": "Make sure to check your spam inbox.",
+ "step3-message": "Almost there!",
+ "step4-message": "Save your Emergency Kit",
+ "step4-description1": "If you get locked out of your account, your Emergency Kit is the only way to sign in.",
+ "step4-description2": "We recommend you download it and keep it somewhere safe.",
+ "step4-description3": "It contains your Secret Key which we cannot access or recover for you if you lose it.",
+ "step4-download": "Download PDF"
+ },
+ "dashboard": {
+ "search-keys": "Search keys...",
+ "add-key": "Add Key",
+ "personal": "Personal",
+ "personal-description": "Personal keys are only visible to you",
+ "shared": "Shared",
+ "shared-description": "Shared keys are visible to your whole team",
+ "make-shared": "Make Shared",
+ "make-personal": "Make Personal"
+ }
+}
diff --git a/frontend/locales/en-US/auth.json b/frontend/locales/en-US/auth.json
deleted file mode 100644
index 81c4918d0..000000000
--- a/frontend/locales/en-US/auth.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "meta": {
- "login": {
- "title": "Login | Infiscal",
- "og-title": "Log In to Infisical",
- "og-description": "Infisical a simple end-to-end encrypted platform that enables teams to sync and manage their .env files."
- },
- "signup": {
- "title": "Sign Up | Infiscal",
- "og-title": "Replace .env files with 1 line of code. Sign Up for Infisical in 3 minutes.",
- "og-description": "Infisical a simple end-to-end encrypted platform that enables teams to sync and manage API-keys and environemntal variables. Works with Node.js, Next.js, Gatsby, Nest.js..."
- }
- },
- "login": "Log In",
- "signup": "Sign Up",
- "need-account": "Need an Infisical account?",
- "create-account": "Create an account",
- "already-have-account": "Have an account? Log in",
- "forgot-password": "Forgot your password?",
- "step1-start": "Let's get started",
- "step1-privacy": "By creating an account, you agree to our Terms and have read and acknowledged the Privacy Policy.",
- "step1-submit": "Get Started",
- "step2-message": "We've sent a verification email to{{email}}",
- "step2-code-error": "Oops. Your code is wrong. Please try again.",
- "step2-spam-alert": "Make sure to check your spam inbox.",
- "step3-message": "Almost there!",
- "step4-message": "Save your Emergency Kit",
- "step4-description1": "If you get locked out of your account, your Emergency Kit is the only way to sign in.",
- "step4-description2": "We recommend you download it and keep it somewhere safe.",
- "step4-description3": "It contains your Secret Key which we cannot access or recover for you if you lose it.",
- "step4-download": "Download PDF"
-}
diff --git a/frontend/locales/en-US/common.json b/frontend/locales/en-US/common.json
deleted file mode 100644
index 0cce1b3b0..000000000
--- a/frontend/locales/en-US/common.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "error_project-already-exists": "A project with this name already exists.",
- "need-login": " To use Infisical, please log in through a device with larger dimensions. ",
- "email": "Email",
- "password": "Password",
- "verify": "Verify",
- "first-name": "First Name",
- "last-name": "Last Name",
- "logout": "Log Out",
- "validate-required": "Please input your {{name}}",
- "password-validate": "Password should contain at least:",
- "password-validate-length": "14 characters",
- "password-validate-case": "1 lowercase character",
- "password-validate-number": "1 number",
- "maintenance-alert": "We are experiencing minor technical difficulties. We are working on solving it right now. Please come back in a few minutes.",
- "click-to-copy": "Click to copy",
- "project-id": "Project ID",
- "save-changes": "Save Changes",
- "drop-zone": "Drag and drop your .env file here.",
- "drop-zone-keys": "Drag and drop your .env file here to add more keys."
-}
diff --git a/frontend/locales/en-US/dashboard.json b/frontend/locales/en-US/dashboard.json
deleted file mode 100644
index e3b0c6ca8..000000000
--- a/frontend/locales/en-US/dashboard.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "search-keys": "Search keys...",
- "add-key": "Add Key",
- "personal": "Personal",
- "personal-description": "Personal keys are only visible to you",
- "shared": "Shared",
- "shared-description": "Shared keys are visible to your whole team",
- "make-shared": "Make Shared",
- "make-personal": "Make Personal"
-}
diff --git a/frontend/locales/en-US/nav.json b/frontend/locales/en-US/nav.json
deleted file mode 100644
index 9448a53a7..000000000
--- a/frontend/locales/en-US/nav.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "support": {
- "slack": "[NEW] Join Slack Forum",
- "docs": "Read Docs",
- "issue": "Open a Github Issue",
- "email": "Send us an Email"
- },
- "user": {
- "signed-in-as": "SIGNED IN AS",
- "current-organization": "CURRENT ORGANIZATION",
- "usage-billing": "Usage & Billing",
- "invite": "Invite Members",
- "other-organizations": "OTHER ORGANIZATION"
- },
- "menu": {
- "project": "PROJECT",
- "secrets": "Secrets",
- "members": "Members",
- "integrations": "Integrations",
- "project-settings": "Project Settings"
- }
-}
diff --git a/frontend/locales/ko-KR.json b/frontend/locales/ko-KR.json
new file mode 100644
index 000000000..3b7a89c6a
--- /dev/null
+++ b/frontend/locales/ko-KR.json
@@ -0,0 +1,6 @@
+{
+ "common": {},
+ "nav": {},
+ "auth": {},
+ "dashboard": {}
+}
diff --git a/frontend/locales/ko-KR/common.json b/frontend/locales/ko-KR/common.json
deleted file mode 100644
index 0967ef424..000000000
--- a/frontend/locales/ko-KR/common.json
+++ /dev/null
@@ -1 +0,0 @@
-{}