1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

[bug] in-context translation is loading invalid locale for MessageFormat

This commit is contained in:
Sylvain 2020-04-07 14:39:31 +02:00
parent c6c25f0595
commit 44e726bc54
2 changed files with 1 additions and 3 deletions

View File

@ -6,6 +6,7 @@
- Fix a bug: installation without nginx does not remove the service from the docker-compose file
- Fix a bug: default twitter feed is invalid
- Fix a bug: default nginx configuration does not allows secure cookies
- Fix a bug: in-context translation is loading invalid locale for MessageFormat
## v4.3.3 2020 April 1st

View File

@ -139,9 +139,6 @@
<!-- i18n of external libraries -->
<script type="text/javascript" src="<%= asset_path "angular-i18n/angular-locale_#{Rails.application.secrets.angular_locale}.js" %>"></script>
<% if Rails.env.staging? && Rails.application.secrets.enable_in_context_translation %>
<script type="text/javascript">MessageFormat.locale.ach=function(n){return n===0||n===1?"one":"other"};</script>
<% end %>
<!-- if required locale does not exist, use the default "en" -->
<% if asset_available?("moment/locale/#{Rails.application.secrets.moment_locale}.js") %>
<script type="text/javascript" src="<%= asset_path "moment/locale/#{Rails.application.secrets.moment_locale}.js" %>"></script>