mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-23 05:01:49 +10:00
37 lines
531 B
JavaScript
37 lines
531 B
JavaScript
import i18n from 'i18next';
|
|
import { initReactI18next } from 'react-i18next';
|
|
|
|
import resources from './locales';
|
|
|
|
const languages = [
|
|
{
|
|
code: 'en',
|
|
name: 'English',
|
|
},
|
|
{
|
|
code: 'fr',
|
|
name: 'French',
|
|
},
|
|
{
|
|
code: 'hi',
|
|
name: 'Hindi',
|
|
},
|
|
{
|
|
code: 'kn',
|
|
name: 'Kannada',
|
|
},
|
|
];
|
|
|
|
i18n.use(initReactI18next).init({
|
|
lng: 'en',
|
|
fallbackLng: 'en',
|
|
resources,
|
|
debug: true,
|
|
ns: ['app', 'leftSidebar', 'rightSidebar'],
|
|
defaultNS: 'app',
|
|
});
|
|
|
|
export { languages };
|
|
|
|
export default i18n;
|