import { ru } from './translations/ru';
import { zh } from './translations/zh';
import { nl } from './translations/nl';
+import { it } from './translations/it';
// https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
- // TODO don't forget to add moment locales for new languages.
const resources = {
en,
eo,
sv,
ru,
nl,
- }
+ it,
+ };
function format(value: any, format: any, lng: any) {
- if (format === 'uppercase') return value.toUpperCase();
- return value;
+ if (format === 'uppercase') return value.toUpperCase();
+ return value;
}
- i18n
- .init({
- debug: true,
+ i18n.init({
+ debug: false,
// load: 'languageOnly',
// initImmediate: false,
lng: getLanguage(),
fallbackLng: 'en',
- resources,
- interpolation: {
- format: format
-
+ resources,
+ interpolation: {
+ format: format,
- },
+ }
});
export { i18n, resources };
import 'moment/locale/sv';
import 'moment/locale/ru';
import 'moment/locale/nl';
+import 'moment/locale/it';
- import { UserOperation, Comment, User, SortType, ListingType, SearchType } from './interfaces';
+ import {
+ UserOperation,
+ Comment,
+ User,
+ SortType,
+ ListingType,
+ SearchType,
+ } from './interfaces';
import * as markdown_it from 'markdown-it';
import * as markdownitEmoji from 'markdown-it-emoji/light';
import * as markdown_it_container from 'markdown-it-container';