i18n: {
i18next: {
returnObjects: true,
},
defaultLanguageDirectory: '/var/tictactoe/languages',
backend: {
paths: ['{{lng}}.json'],
},
fetchLanguage: async (context: InternationalizationContext) => {
const locale = context.interactionGuildLocale || context.interactionLocale;
if (locale && container.i18n.languages.has(locale)) return locale;
return 'en-US';
},
},
i18n: {
i18next: {
returnObjects: true,
},
defaultLanguageDirectory: '/var/tictactoe/languages',
backend: {
paths: ['{{lng}}.json'],
},
fetchLanguage: async (context: InternationalizationContext) => {
const locale = context.interactionGuildLocale || context.interactionLocale;
if (locale && container.i18n.languages.has(locale)) return locale;
return 'en-US';
},
},