Improve frontend traslations 2
This commit is contained in:
@@ -18,6 +18,9 @@ import wizardsEs from './es/wizards.json';
|
||||
import subscriptionEs from './es/subscription.json';
|
||||
import purchaseOrdersEs from './es/purchase_orders.json';
|
||||
import helpEs from './es/help.json';
|
||||
import featuresEs from './es/features.json';
|
||||
import aboutEs from './es/about.json';
|
||||
import demoEs from './es/demo.json';
|
||||
|
||||
// English translations
|
||||
import commonEn from './en/common.json';
|
||||
@@ -39,6 +42,9 @@ import wizardsEn from './en/wizards.json';
|
||||
import subscriptionEn from './en/subscription.json';
|
||||
import purchaseOrdersEn from './en/purchase_orders.json';
|
||||
import helpEn from './en/help.json';
|
||||
import featuresEn from './en/features.json';
|
||||
import aboutEn from './en/about.json';
|
||||
import demoEn from './en/demo.json';
|
||||
|
||||
// Basque translations
|
||||
import commonEu from './eu/common.json';
|
||||
@@ -60,6 +66,9 @@ import wizardsEu from './eu/wizards.json';
|
||||
import subscriptionEu from './eu/subscription.json';
|
||||
import purchaseOrdersEu from './eu/purchase_orders.json';
|
||||
import helpEu from './eu/help.json';
|
||||
import featuresEu from './eu/features.json';
|
||||
import aboutEu from './eu/about.json';
|
||||
import demoEu from './eu/demo.json';
|
||||
|
||||
// Translation resources by language
|
||||
export const resources = {
|
||||
@@ -83,6 +92,9 @@ export const resources = {
|
||||
subscription: subscriptionEs,
|
||||
purchase_orders: purchaseOrdersEs,
|
||||
help: helpEs,
|
||||
features: featuresEs,
|
||||
about: aboutEs,
|
||||
demo: demoEs,
|
||||
},
|
||||
en: {
|
||||
common: commonEn,
|
||||
@@ -104,6 +116,9 @@ export const resources = {
|
||||
subscription: subscriptionEn,
|
||||
purchase_orders: purchaseOrdersEn,
|
||||
help: helpEn,
|
||||
features: featuresEn,
|
||||
about: aboutEn,
|
||||
demo: demoEn,
|
||||
},
|
||||
eu: {
|
||||
common: commonEu,
|
||||
@@ -125,6 +140,9 @@ export const resources = {
|
||||
subscription: subscriptionEu,
|
||||
purchase_orders: purchaseOrdersEu,
|
||||
help: helpEu,
|
||||
features: featuresEu,
|
||||
about: aboutEu,
|
||||
demo: demoEu,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -161,7 +179,7 @@ export const languageConfig = {
|
||||
};
|
||||
|
||||
// Namespaces available in translations
|
||||
export const namespaces = ['common', 'auth', 'inventory', 'foodSafety', 'suppliers', 'orders', 'recipes', 'errors', 'dashboard', 'production', 'equipment', 'landing', 'settings', 'ajustes', 'reasoning', 'wizards', 'subscription', 'purchase_orders', 'help'] as const;
|
||||
export const namespaces = ['common', 'auth', 'inventory', 'foodSafety', 'suppliers', 'orders', 'recipes', 'errors', 'dashboard', 'production', 'equipment', 'landing', 'settings', 'ajustes', 'reasoning', 'wizards', 'subscription', 'purchase_orders', 'help', 'features', 'about', 'demo'] as const;
|
||||
export type Namespace = typeof namespaces[number];
|
||||
|
||||
// Helper function to get language display name
|
||||
@@ -175,7 +193,7 @@ export const isSupportedLanguage = (language: string): language is SupportedLang
|
||||
};
|
||||
|
||||
// Export individual language modules for direct imports
|
||||
export { commonEs, authEs, inventoryEs, foodSafetyEs, suppliersEs, ordersEs, recipesEs, errorsEs, equipmentEs, landingEs, settingsEs, ajustesEs, reasoningEs, wizardsEs, wizardsEn, wizardsEu, helpEs, helpEn, helpEu };
|
||||
export { commonEs, authEs, inventoryEs, foodSafetyEs, suppliersEs, ordersEs, recipesEs, errorsEs, equipmentEs, landingEs, settingsEs, ajustesEs, reasoningEs, wizardsEs, wizardsEn, wizardsEu, helpEs, helpEn, helpEu, featuresEs, featuresEn, featuresEu, aboutEs, aboutEn, aboutEu, demoEs, demoEn, demoEu };
|
||||
|
||||
// Default export with all translations
|
||||
export default resources;
|
||||
|
||||
Reference in New Issue
Block a user