Ghost/ghost/i18n/test/i18n.test.js

20 lines
447 B
JavaScript
Raw Normal View History

const assert = require('assert');
const i18n = require('../');
describe('i18n', function () {
describe('Can use Portal resources', function () {
describe('Dutch', function () {
let t;
before(function () {
t = i18n('nl', 'portal').t;
});
it('can translate `Name`', function () {
assert.equal(t('Name'), 'Naam');
});
});
});
});