Files
umra-app/i18n.ts
Mekan1206 c2cd61c679 Refactor localization and simplify HomeScreen functionality
- Removed English and Russian localization files, focusing solely on Turkmen.
- Simplified language initialization in i18n.ts to default to Turkmen.
- Cleaned up HomeScreen by removing modal for language selection and related state management.
2025-09-17 19:25:49 +05:00

17 lines
287 B
TypeScript

import { I18n } from 'i18n-js';
import tk from './locales/tk.json';
const i18n = new I18n({
tk,
});
i18n.locale = 'tk';
i18n.enableFallback = true;
// Function to initialize the language
export const initializeLanguage = async () => {
i18n.locale = 'tk';
};
export default i18n;