Generate one file per locale key and require that explicitly

pull/4648/head
Oliver Günther 8 years ago
parent d65e527d16
commit 0553efa76d
  1. 1
      .gitignore
  2. 1
      app/views/layouts/base.html.erb
  3. 4
      config/i18n-js.yml
  4. 1
      config/initializers/assets.rb

1
.gitignore vendored

@ -49,6 +49,7 @@ npm-debug.log*
/.project
/.loadpath
/app/assets/javascripts/bundles/*.*
/app/assets/javascripts/locales/*.*
/config/additional_environment.rb
/config/configuration.yml
/config/database.yml

@ -42,6 +42,7 @@ See doc/COPYRIGHT.rdoc for more details.
<%= render 'common/favicons' %>
<%= stylesheet_link_tag current_theme.stylesheet_manifest, media: "all" %>
<%= javascript_include_tag 'application' %>
<%= javascript_include_tag "locales/#{I18n.locale}" %>
<!-- user specific tags -->
<%= user_specific_javascript_includes %>
<!-- project specific tags -->

@ -0,0 +1,4 @@
fallbacks: false
translations:
- file: "app/assets/javascripts/locales/%{locale}.js"
only: '*.js'

@ -13,6 +13,7 @@ OpenProject::Application.configure do
date-de-DE.js
date-en-US.js
jstoolbar/lang/*.js
locales/*.js
members_form.js
members_select_boxes.js
new_user.js

Loading…
Cancel
Save