mirror of
https://github.com/parsis-foundation/parsis.fund.git
synced 2026-10-30 20:47:22 +00:00
- Transform to sovereign wealth fund / family fund site - Focus on technology investment, open governance, AI, crypto - Update workflow for Next.js deployment - Update all translations and navigation - Update package.json metadata
17 lines
361 B
TypeScript
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';
|
|
}
|