mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-25 17:09:33 +02:00
chore: remove unnecessary
This commit is contained in:
@@ -16,12 +16,11 @@ if (useLocize) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const locizeOptions = {
|
const locizeOptions = {
|
||||||
projectId: 'e7156a3e-66fb-4035-a0f0-cebf1c63a3ba', // Replace with your Locize project ID
|
projectId: 'e7156a3e-66fb-4035-a0f0-cebf1c63a3ba',
|
||||||
apiKey: import.meta.env.LOCIZE_API_KEY, // Replace with your Locize API key
|
apiKey: import.meta.env.LOCIZE_API_KEY,
|
||||||
referenceLng: 'en',
|
referenceLng: 'en',
|
||||||
version: 'latest'
|
version: 'latest'
|
||||||
};
|
};
|
||||||
// Merge translations for demonstration; in a real app, use namespaces
|
|
||||||
|
|
||||||
export type I18nNamespaces =
|
export type I18nNamespaces =
|
||||||
| 'translation'
|
| 'translation'
|
||||||
@@ -46,7 +45,6 @@ i18n.use(initReactI18next).init({
|
|||||||
backend: useLocize
|
backend: useLocize
|
||||||
? locizeOptions
|
? locizeOptions
|
||||||
: {
|
: {
|
||||||
// Static files backend for production
|
|
||||||
loadPath: '/locales/{{lng}}/{{ns}}.json'
|
loadPath: '/locales/{{lng}}/{{ns}}.json'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user