mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Removed test.json translations
- these weren't really doing much and would become a nuisance to newcomers
This commit is contained in:
parent
849027e255
commit
d58ff309d0
10 changed files with 4 additions and 60 deletions
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"Hello": "Goeie Dag Test",
|
||||
"Name": "Naam"
|
||||
}
|
|
@ -29,7 +29,6 @@
|
|||
"Get help": "A link to contact support",
|
||||
"Get notified when someone replies to your comment": "A label for a setting allowing email notifications to be received",
|
||||
"Give feedback on this post": "A label that goes with the member feedback buttons at the bottom of newsletters",
|
||||
"Hello": "An introduction/opening to an email",
|
||||
"Hey there,": "An introduction/opening to an email",
|
||||
"If you did not make this request, you can safely ignore this email.": "Footer text in signup/login emails",
|
||||
"If you did not make this request, you can simply delete this message.": "Footer text in signup/login emails",
|
||||
|
@ -83,4 +82,4 @@
|
|||
"Your input helps shape what gets published.": "Descriptive text displayed on the member feedback UI, telling people how their feedback is used",
|
||||
"{{discount}}% discount": "A label for discounts",
|
||||
"{{trialDays}} days free": "A label for free trial days"
|
||||
}
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"Hello": "Hallo",
|
||||
"Name": "Name"
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"Hello": "Hello Test",
|
||||
"Name": ""
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"Hello": "Bonjour",
|
||||
"Name": "Nom"
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"Hello": "Hello",
|
||||
"Name": "Név"
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"Hello": "Сайн уу?",
|
||||
"Name": "Нэр"
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"Hello": "Hallo Test",
|
||||
"Name": ""
|
||||
}
|
|
@ -12,10 +12,9 @@
|
|||
"lint:code": "eslint *.js lib/ --ext .js --cache",
|
||||
"lint": "yarn lint:code && yarn lint:test",
|
||||
"lint:test": "eslint -c test/.eslintrc.js test/ --ext .js --cache",
|
||||
"translate": "yarn translate:ghost && yarn translate:portal && yarn translate:test && node generate-context.js",
|
||||
"translate": "yarn translate:ghost && yarn translate:portal && node generate-context.js",
|
||||
"translate:ghost": "NAMESPACE=ghost i18next '../core/core/{frontend,server,shared}/**/*.{js,jsx}'",
|
||||
"translate:portal": "NAMESPACE=portal i18next '../portal/src/**/*.{js,jsx}'",
|
||||
"translate:test": "NAMESPACE=test i18next './test/**/*.js'"
|
||||
"translate:portal": "NAMESPACE=portal i18next '../portal/src/**/*.{js,jsx}'"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
|
|
|
@ -4,7 +4,7 @@ const i18n = require('../');
|
|||
|
||||
describe('i18n', function () {
|
||||
describe('Can use Portal resources', function () {
|
||||
describe('English', function () {
|
||||
describe('Dutch', function () {
|
||||
let t;
|
||||
|
||||
before(function () {
|
||||
|
@ -16,30 +16,4 @@ describe('i18n', function () {
|
|||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('Can translate', function () {
|
||||
describe('Dutch', function () {
|
||||
let t;
|
||||
|
||||
before(function () {
|
||||
t = i18n('nl', 'test').t;
|
||||
});
|
||||
|
||||
it('can translate Dutch', function () {
|
||||
assert.equal(t('Hello'), 'Hallo Test');
|
||||
});
|
||||
});
|
||||
|
||||
describe('English', function () {
|
||||
let t;
|
||||
|
||||
before(function () {
|
||||
t = i18n('en', 'test').t;
|
||||
});
|
||||
|
||||
it('can translate English', function () {
|
||||
assert.equal(t('Hello'), 'Hello Test');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue