diff --git a/packages/common/i18next-scanner.config.js b/packages/common/i18next-scanner.config.js index 3eb7d15907b2901987862b2619bbda8947c738c8..3372857b7496cfee5ee2707370e162f692705743 100644 --- a/packages/common/i18next-scanner.config.js +++ b/packages/common/i18next-scanner.config.js @@ -3,12 +3,14 @@ module.exports = { output: './', options: { debug: false, + sort: true, removeUnusedKeys: true, func: {list: ['i18n.t', '_i18n.t']}, lngs: ['en', 'de'], resource: { loadPath: 'src/i18n/{{lng}}/{{ns}}.json', savePath: 'src/i18n/{{lng}}/{{ns}}.json', + jsonIndent: 4, }, }, }; diff --git a/packages/common/src/i18n/de/translation.json b/packages/common/src/i18n/de/translation.json index cedfe4733c401f948892f5a75e8897c74a14bfa8..51cf793c6cb4108b18d8cab47b63959663ec8590 100644 --- a/packages/common/src/i18n/de/translation.json +++ b/packages/common/src/i18n/de/translation.json @@ -1,11 +1,11 @@ { "error": { - "summary": "Ein Fehler ist aufgetreten", - "connection-to-server-refused": "Verbindungs zum Server verweigert!" + "connection-to-server-refused": "Verbindungs zum Server verweigert!", + "summary": "Ein Fehler ist aufgetreten" }, "jsonld": { + "api-documentation-server": "Verbindung zum apiDocumentation API Server {{apiDocUrl}} fehlgeschlagen!", "error-api-server": "Verbindung zum API Server {{apiUrl}} fehlgeschlagen!", - "error-hydra-documentation-url-not-set": "Hydra apiDocumentation URL wurden für server {{apiUrl}} nicht gesetzt!", - "api-documentation-server": "Verbindung zum apiDocumentation API Server {{apiDocUrl}} fehlgeschlagen!" + "error-hydra-documentation-url-not-set": "Hydra apiDocumentation URL wurden für server {{apiUrl}} nicht gesetzt!" } } diff --git a/packages/common/src/i18n/en/translation.json b/packages/common/src/i18n/en/translation.json index 4e3cd1dfcfa312d0a5c7a0f977922a2d75dbc80e..e1036a6580fd180af131a4c2744c8c4fef2745fb 100644 --- a/packages/common/src/i18n/en/translation.json +++ b/packages/common/src/i18n/en/translation.json @@ -1,11 +1,11 @@ { "error": { - "summary": "An error occurred", - "connection-to-server-refused": "Connection to server refused!" + "connection-to-server-refused": "Connection to server refused!", + "summary": "An error occurred" }, "jsonld": { + "api-documentation-server": "Connection to apiDocumentation server {{apiDocUrl}} failed!", "error-api-server": "Connection to api server {{apiUrl}} failed!", - "error-hydra-documentation-url-not-set": "Hydra apiDocumentation url was not set for server {{apiUrl}}!", - "api-documentation-server": "Connection to apiDocumentation server {{apiDocUrl}} failed!" + "error-hydra-documentation-url-not-set": "Hydra apiDocumentation url was not set for server {{apiUrl}}!" } }