Improve public pages
This commit is contained in:
@@ -10,6 +10,7 @@ import errorsEs from './es/errors.json';
|
||||
import dashboardEs from './es/dashboard.json';
|
||||
import productionEs from './es/production.json';
|
||||
import equipmentEs from './es/equipment.json';
|
||||
import landingEs from './es/landing.json';
|
||||
|
||||
// English translations
|
||||
import commonEn from './en/common.json';
|
||||
@@ -23,6 +24,7 @@ import errorsEn from './en/errors.json';
|
||||
import dashboardEn from './en/dashboard.json';
|
||||
import productionEn from './en/production.json';
|
||||
import equipmentEn from './en/equipment.json';
|
||||
import landingEn from './en/landing.json';
|
||||
|
||||
// Basque translations
|
||||
import commonEu from './eu/common.json';
|
||||
@@ -36,6 +38,7 @@ import errorsEu from './eu/errors.json';
|
||||
import dashboardEu from './eu/dashboard.json';
|
||||
import productionEu from './eu/production.json';
|
||||
import equipmentEu from './eu/equipment.json';
|
||||
import landingEu from './eu/landing.json';
|
||||
|
||||
// Translation resources by language
|
||||
export const resources = {
|
||||
@@ -51,6 +54,7 @@ export const resources = {
|
||||
dashboard: dashboardEs,
|
||||
production: productionEs,
|
||||
equipment: equipmentEs,
|
||||
landing: landingEs,
|
||||
},
|
||||
en: {
|
||||
common: commonEn,
|
||||
@@ -64,6 +68,7 @@ export const resources = {
|
||||
dashboard: dashboardEn,
|
||||
production: productionEn,
|
||||
equipment: equipmentEn,
|
||||
landing: landingEn,
|
||||
},
|
||||
eu: {
|
||||
common: commonEu,
|
||||
@@ -77,6 +82,7 @@ export const resources = {
|
||||
dashboard: dashboardEu,
|
||||
production: productionEu,
|
||||
equipment: equipmentEu,
|
||||
landing: landingEu,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -113,7 +119,7 @@ export const languageConfig = {
|
||||
};
|
||||
|
||||
// Namespaces available in translations
|
||||
export const namespaces = ['common', 'auth', 'inventory', 'foodSafety', 'suppliers', 'orders', 'recipes', 'errors', 'dashboard', 'production', 'equipment'] as const;
|
||||
export const namespaces = ['common', 'auth', 'inventory', 'foodSafety', 'suppliers', 'orders', 'recipes', 'errors', 'dashboard', 'production', 'equipment', 'landing'] as const;
|
||||
export type Namespace = typeof namespaces[number];
|
||||
|
||||
// Helper function to get language display name
|
||||
@@ -127,7 +133,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 };
|
||||
export { commonEs, authEs, inventoryEs, foodSafetyEs, suppliersEs, ordersEs, recipesEs, errorsEs, equipmentEs, landingEs };
|
||||
|
||||
// Default export with all translations
|
||||
export default resources;
|
||||
Reference in New Issue
Block a user