mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-21 15:54:22 +01:00
[bug] in-context translation is loading invalid locale for MessageFormat
This commit is contained in:
parent
c6c25f0595
commit
44e726bc54
@ -6,6 +6,7 @@
|
|||||||
- Fix a bug: installation without nginx does not remove the service from the docker-compose file
|
- 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 twitter feed is invalid
|
||||||
- Fix a bug: default nginx configuration does not allows secure cookies
|
- 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
|
## v4.3.3 2020 April 1st
|
||||||
|
|
||||||
|
@ -139,9 +139,6 @@
|
|||||||
|
|
||||||
<!-- i18n of external libraries -->
|
<!-- i18n of external libraries -->
|
||||||
<script type="text/javascript" src="<%= asset_path "angular-i18n/angular-locale_#{Rails.application.secrets.angular_locale}.js" %>"></script>
|
<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 required locale does not exist, use the default "en" -->
|
||||||
<% if asset_available?("moment/locale/#{Rails.application.secrets.moment_locale}.js") %>
|
<% 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>
|
<script type="text/javascript" src="<%= asset_path "moment/locale/#{Rails.application.secrets.moment_locale}.js" %>"></script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user