jschan - Anonymous imageboard software. Classic look, modern features and feel. Works without JavaScript and supports Tor, I2P, Lokinet, etc.
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.
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const i18n = require('i18n')
|
|
|
|
, path = require('path')
|
|
|
|
, { debugLogs } = require(__dirname+'/../../configs/secrets.js');
|
|
|
|
|
|
|
|
i18n.configure({
|
|
|
|
directory: path.join(__dirname, '/../../locales'),
|
|
|
|
locales: ['en', 'pt'],
|
|
|
|
defaultLocale: 'en',
|
|
|
|
retryInDefaultLocale: false,
|
|
|
|
updateFiles: false, //holy FUCK why is that an option
|
|
|
|
cookie: null,
|
|
|
|
header: null,
|
|
|
|
queryParameter: null,
|
|
|
|
});
|
|
|
|
|
|
|
|
debugLogs && console.log('Locales loaded:', i18n.getLocales());
|
|
|
|
|
|
|
|
module.exports = i18n;
|