Ready for production deployment with Dockerfile and i18n support
This commit is contained in:
6
app/dictionaries/index.ts
Normal file
6
app/dictionaries/index.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export const getDictionary = async (locale: 'en' | 'tr') => {
|
||||
if (locale === 'en') {
|
||||
return import('./en.json').then((module) => module.default);
|
||||
}
|
||||
return import('./tr.json').then((module) => module.default);
|
||||
};
|
||||
Reference in New Issue
Block a user