Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(ui): localize organization navigation

Maxf1458adac6a3
diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.json
index ccb4af906..965767fd3 100644
--- a/ui/src/i18n/en.json
+++ b/ui/src/i18n/en.json
@@ -116,6 +116,7 @@
},
"nav": {
"dashboard": "Dashboard",
+ "organization": "Organization",
"appLibrary": "App Library",
"channels": "Groups",
"users": "Direct Messages",
diff --git a/ui/src/i18n/navigation.test.ts b/ui/src/i18n/navigation.test.ts
new file mode 100644
index 000000000..98c24a1ef
--- /dev/null
+++ b/ui/src/i18n/navigation.test.ts
@@ -0,0 +1,31 @@
+import { createInstance } from 'i18next';
+import { describe, expect, it } from 'vitest';
+
+import en from './en.json';
+import zh from './zh.json';
+
+const navigationLabels = {
+ en: en.nav,
+ zh: zh.nav,
+};
+
+describe('navigation translations', () => {
+ it.each(Object.entries(navigationLabels))(
+ 'resolves every %s navigation key to visible copy',
+ (language, labels) => {
+ const i18n = createInstance();
+ void i18n.init({
+ lng: language,
+ resources: { [language]: { translation: { nav: labels } } },
+ });
+
+ for (const key of Object.keys(labels)) {
+ expect(i18n.t(`nav.${key}`)).not.toBe(`nav.${key}`);
+ }
+ },
+ );
+
+ it('keeps navigation keys available in both locales', () => {
+ expect(Object.keys(zh.nav).sort()).toEqual(Object.keys(en.nav).sort());
+ });
+});
diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.json
index 13823afdf..614191d5f 100644
--- a/ui/src/i18n/zh.json
+++ b/ui/src/i18n/zh.json
@@ -116,6 +116,7 @@
},
"nav": {
"dashboard": "控制台",
+ "organization": "组织",
"appLibrary": "应用库",
"channels": "群组",
"users": "私聊",