mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 09:22:49 +03:00
15fad7837f
- we need the basePath concept for the main i18n class so we can pull it out into a module - we already had this in the themeI18n class, so I just had to move it up - also I added a default of __dirname, so we don't have to declare this constantly in the tests
7 lines
216 B
JavaScript
7 lines
216 B
JavaScript
const path = require('path');
|
|
const logging = require('../logging');
|
|
const I18n = require('./i18n');
|
|
|
|
module.exports = new I18n({logging, basePath: path.join(__dirname, 'translations')});
|
|
module.exports.I18n = I18n;
|