Files
zeekay 3aaf80ad3f Update content for Parsis Foundation
- Transform from personal site to foundation/NGO site
- Focus on education, research, AI, cryptography, open governance
- Update all translations and navigation
- Update package.json metadata
2026-02-04 18:35:04 -08:00

17 lines
361 B
TypeScript

import en from './en.json';
import fa from './fa.json';
export type Locale = 'en' | 'fa';
export const translations = { en, fa } as const;
export type TranslationKeys = typeof en;
export function getTranslation(locale: Locale): TranslationKeys {
return translations[locale];
}
export function isRTL(locale: Locale): boolean {
return locale === 'fa';
}