You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// index.ts
|
|
|
|
import { createI18n } from './i18n.engine';
|
|
import { translations } from './translations';
|
|
|
|
|
|
|
|
export const i18n = createI18n(translations, 'es');
|
|
|
|
// Desestructura si prefieres usar t() directamente
|
|
export const { t, tForLocale, setLocale, getLocale, onLocaleChange } = i18n; |