diff --git a/frontend/app/openproject-xls_export-app.js b/frontend/app/openproject-xls_export-app.js index e21797821c..d880e0ad44 100644 --- a/frontend/app/openproject-xls_export-app.js +++ b/frontend/app/openproject-xls_export-app.js @@ -1,2 +1,6 @@ -I18n.addTranslations('en', require('../../config/locales/js-en.yml').en); -I18n.addTranslations('de', require('../../config/locales/js-de.yml').de); +// load all js locales +var localeFiles = require.context('../../config/locales', false, /js-[\w|-]{2,5}\.yml$/); +localeFiles.keys().forEach(function(localeFile) { + var locale = localeFile.match(/js-([\w|-]{2,5})\.yml/)[1]; + I18n.addTranslations(locale, localeFiles(localeFile)[locale]); +}); diff --git a/lib/open_project/xls_export/version.rb b/lib/open_project/xls_export/version.rb index 5a7561b39d..c2b5900c09 100644 --- a/lib/open_project/xls_export/version.rb +++ b/lib/open_project/xls_export/version.rb @@ -1,5 +1,5 @@ module OpenProject module XlsExport - VERSION = "4.3.0-alpha" + VERSION = "4.3.0" end end