const assert = require('assert/strict'); 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'); }); }); }); describe('Can use Signup-form resources', function () { describe('Afrikaans', function () { let t; before(function () { t = i18n('af', 'signup-form').t; }); it('can translate `Now check your email!`', function () { assert.equal(t('Now check your email!'), 'Kyk nou in jou e-pos!'); }); }); }); });