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.

821 B
Raw Blame
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());
  });
});