Moved i18n translations into JSON files

refs https://github.com/TryGhost/Ghost/issues/15502

- plain JSON files are cleaner and less overwhelming than boilerplate JS
  files, and given they're going to be automatically generated, we
  probably won't be able to support comments anyway
This commit is contained in:
Daniel Lockyer 2023-01-18 17:01:44 +01:00
parent 7ba40a92a1
commit fb030353fe
No known key found for this signature in database
5 changed files with 10 additions and 13 deletions

View File

@ -14,8 +14,12 @@ module.exports = (lng = 'en') => {
fallbackLng: false,
resources: {
en: require('../locales/en.js'),
nl: require('../locales/nl.js')
en: {
translation: require('../locales/en.json')
},
nl: {
translation: require('../locales/nl.json')
}
}
});

View File

@ -1,6 +0,0 @@
// Note: we probably don't need anything in here because we don't expect
// to translate English to English, but it's here for completeness
module.exports = {
translation: {
}
};

View File

@ -0,0 +1 @@
{}

View File

@ -1,5 +0,0 @@
module.exports = {
translation: {
'Hello': 'Hallo'
}
};

View File

@ -0,0 +1,3 @@
{
"Hello": "Hallo"
}