Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
add xspace-agent/xspace-agent/packages/core/tests/unit/translation/languages.test.ts
overstepping46f78b5afd50
diff --git a/xspace-agent/xspace-agent/packages/core/tests/unit/translation/languages.test.ts b/xspace-agent/xspace-agent/packages/core/tests/unit/translation/languages.test.tsnew file mode 100644index 000000000..36b1f0104--- /dev/null+++ b/xspace-agent/xspace-agent/packages/core/tests/unit/translation/languages.test.ts@@ -0,0 +1,59 @@+// SPDX-License-Identifier: Apache-2.0+// Copyright 2026 nirholas (https://github.com/nirholas/xspace-agent) [§76]++import { describe, it, expect, vi, beforeEach } from 'vitest'+import {+ SUPPORTED_LANGUAGES,+ getLanguage,+ getLanguagesByTier,+ getSupportedLanguageCodes,+ isLanguageSupported,+} from '../../../src/translation/languages'++describe('Translation — Languages', () => {+ it('should have 50+ supported languages', () => {+ expect(SUPPORTED_LANGUAGES.length).toBeGreaterThanOrEqual(50)+ })++ it('should have 16 Tier 1 languages', () => {+ const tier1 = getLanguagesByTier(1)+ expect(tier1.length).toBe(16)+ })++ it('should have 15 Tier 2 languages', () => {+ const tier2 = getLanguagesByTier(2)+ expect(tier2.length).toBe(15)+ })++ it('should have Tier 3 languages', () => {+ const tier3 = getLanguagesByTier(3)+ expect(tier3.length).toBeGreaterThan(0)+ })++ it('should look up a language by code', () => {+ const en = getLanguage('en')+ expect(en).toBeDefined()+ expect(en!.name).toBe('English')+ expect(en!.tier).toBe(1)+ })++ it('should return undefined for unknown codes', () => {+ expect(getLanguage('xx')).toBeUndefined()+ })++ it('should return all supported language codes', () => {+ const codes = getSupportedLanguageCodes()+ expect(codes).toContain('en')+ expect(codes).toContain('ja')+ expect(codes).toContain('ar')+ expect(codes.length).toBe(SUPPORTED_LANGUAGES.length)+ })++ it('should check language support', () => {+ expect(isLanguageSupported('en')).toBe(true)+ expect(isLanguageSupported('ja')).toBe(true)+ expect(isLanguageSupported('xx')).toBe(false)+ })+})++