mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-18 18:51:32 +10:00
40 lines
561 B
JavaScript
40 lines
561 B
JavaScript
import i18n from 'i18next';
|
|
import { initReactI18next } from 'react-i18next';
|
|
|
|
import resources from './source';
|
|
|
|
const languages = [
|
|
{
|
|
code: 'zh',
|
|
name: 'Chinese',
|
|
},
|
|
{
|
|
code: 'en',
|
|
name: 'English',
|
|
},
|
|
{
|
|
code: 'fr',
|
|
name: 'French',
|
|
},
|
|
{
|
|
code: 'hi',
|
|
name: 'Hindi',
|
|
},
|
|
{
|
|
code: 'kn',
|
|
name: 'Kannada',
|
|
},
|
|
];
|
|
|
|
i18n.use(initReactI18next).init({
|
|
resources,
|
|
lng: 'en',
|
|
fallbackLng: 'en',
|
|
ns: ['app', 'leftSidebar', 'rightSidebar'],
|
|
defaultNS: 'app',
|
|
});
|
|
|
|
export { languages };
|
|
|
|
export default i18n;
|