add normalize function on translations

norm translations due to keyboard shortcut entries
This commit is contained in:
timothycarambat 2025-05-27 14:28:12 -07:00
parent 2cabb2fad8
commit a7c2a56e4b
18 changed files with 241 additions and 5 deletions

View File

@ -879,6 +879,20 @@ const TRANSLATIONS = {
docs: null, docs: null,
star: null, star: null,
}, },
keyboardShortcuts: null,
},
},
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
}, },
}, },
}; };

View File

@ -918,6 +918,20 @@ const TRANSLATIONS = {
docs: null, docs: null,
star: null, star: null,
}, },
keyboardShortcuts: null,
},
},
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
}, },
}, },
}; };

View File

@ -923,6 +923,20 @@ const TRANSLATIONS = {
docs: "Dokumentation", docs: "Dokumentation",
star: "Auf Github mit Stern versehen", star: "Auf Github mit Stern versehen",
}, },
keyboardShortcuts: null,
},
},
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
}, },
}, },
}; };

View File

@ -883,6 +883,20 @@ const TRANSLATIONS = {
docs: "Documentación", docs: "Documentación",
star: "Destacar en Github", star: "Destacar en Github",
}, },
keyboardShortcuts: null,
},
},
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
}, },
}, },
}; };

View File

@ -871,6 +871,20 @@ const TRANSLATIONS = {
docs: null, docs: null,
star: null, star: null,
}, },
keyboardShortcuts: null,
},
},
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
}, },
}, },
}; };

View File

@ -879,6 +879,20 @@ const TRANSLATIONS = {
docs: null, docs: null,
star: null, star: null,
}, },
keyboardShortcuts: null,
},
},
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
}, },
}, },
}; };

View File

@ -864,6 +864,20 @@ const TRANSLATIONS = {
docs: null, docs: null,
star: null, star: null,
}, },
keyboardShortcuts: null,
},
},
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
}, },
}, },
}; };

View File

@ -877,6 +877,20 @@ const TRANSLATIONS = {
docs: null, docs: null,
star: null, star: null,
}, },
keyboardShortcuts: null,
},
},
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
}, },
}, },
}; };

View File

@ -913,6 +913,20 @@ const TRANSLATIONS = {
docs: "ドキュメント", docs: "ドキュメント",
star: "Githubでスター", star: "Githubでスター",
}, },
keyboardShortcuts: null,
},
},
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
}, },
}, },
}; };

View File

@ -864,6 +864,20 @@ const TRANSLATIONS = {
docs: null, docs: null,
star: null, star: null,
}, },
keyboardShortcuts: null,
},
},
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
}, },
}, },
}; };

View File

@ -874,6 +874,20 @@ const TRANSLATIONS = {
docs: null, docs: null,
star: null, star: null,
}, },
keyboardShortcuts: null,
},
},
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
}, },
}, },
}; };

View File

@ -1,3 +1,4 @@
// Anything with "null" requires a translation. Contribute to translation via a PR!
const TRANSLATIONS = { const TRANSLATIONS = {
onboarding: { onboarding: {
home: { home: {
@ -223,14 +224,13 @@ const TRANSLATIONS = {
docs: "Documentação", docs: "Documentação",
star: "Avalie-nos no Github", star: "Avalie-nos no Github",
}, },
keyboardShortcuts: null,
}, },
}, },
"new-workspace": { "new-workspace": {
title: "Novo Workspace", title: "Novo Workspace",
placeholder: "Meu Workspace", placeholder: "Meu Workspace",
}, },
// Workspace Settings menu items
"workspaces—settings": { "workspaces—settings": {
general: "Configurações Gerais", general: "Configurações Gerais",
chat: "Configurações de Chat", chat: "Configurações de Chat",
@ -339,8 +339,6 @@ const TRANSLATIONS = {
hint: "Cada modelo LLM tem faixas de valores válidos. Consulte seu provedor.", hint: "Cada modelo LLM tem faixas de valores válidos. Consulte seu provedor.",
}, },
}, },
// Vector Database
"vector-workspace": { "vector-workspace": {
identifier: "Identificador do banco de dados", identifier: "Identificador do banco de dados",
snippets: { snippets: {
@ -920,6 +918,19 @@ const TRANSLATIONS = {
theme: "Preferência de tema", theme: "Preferência de tema",
language: "Idioma preferido", language: "Idioma preferido",
}, },
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
},
},
}; };
export default TRANSLATIONS; export default TRANSLATIONS;

View File

@ -919,6 +919,20 @@ const TRANSLATIONS = {
docs: null, docs: null,
star: null, star: null,
}, },
keyboardShortcuts: null,
},
},
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
}, },
}, },
}; };

View File

@ -874,6 +874,20 @@ const TRANSLATIONS = {
docs: null, docs: null,
star: null, star: null,
}, },
keyboardShortcuts: null,
},
},
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
}, },
}, },
}; };

View File

@ -873,6 +873,20 @@ const TRANSLATIONS = {
docs: null, docs: null,
star: null, star: null,
}, },
keyboardShortcuts: null,
},
},
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
}, },
}, },
}; };

View File

@ -218,6 +218,7 @@ const TRANSLATIONS = {
docs: "文档", docs: "文档",
star: "在Github上加星标", star: "在Github上加星标",
}, },
keyboardShortcuts: null,
}, },
}, },
"new-workspace": { "new-workspace": {
@ -877,6 +878,19 @@ const TRANSLATIONS = {
theme: "主题偏好", theme: "主题偏好",
language: "语言偏好", language: "语言偏好",
}, },
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
},
},
}; };
export default TRANSLATIONS; export default TRANSLATIONS;

View File

@ -876,6 +876,20 @@ const TRANSLATIONS = {
docs: "文檔", docs: "文檔",
star: "在Github上加星標", star: "在Github上加星標",
}, },
keyboardShortcuts: null,
},
},
"keyboard-shortcuts": {
title: null,
shortcuts: {
settings: null,
workspaceSettings: null,
home: null,
workspaces: null,
apiKeys: null,
llmPreferences: null,
chatSettings: null,
help: null,
}, },
}, },
}; };

View File

@ -26,7 +26,8 @@
"prod:frontend": "cd frontend && yarn build", "prod:frontend": "cd frontend && yarn build",
"generate:cloudformation": "node cloud-deployments/aws/cloudformation/generate.mjs", "generate:cloudformation": "node cloud-deployments/aws/cloudformation/generate.mjs",
"generate::gcp_deployment": "node cloud-deployments/gcp/deployment/generate.mjs", "generate::gcp_deployment": "node cloud-deployments/gcp/deployment/generate.mjs",
"verify:translations": "cd frontend/src/locales && node verifyTranslations.mjs" "verify:translations": "cd frontend/src/locales && node verifyTranslations.mjs",
"normalize:translations": "cd frontend/src/locales && node normalizeEn.mjs"
}, },
"private": false, "private": false,
"devDependencies": { "devDependencies": {