- 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.
17 lines
287 B
TypeScript
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;
|