Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

fix for missing locales when deployed #235

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion app/assets/javascripts/locales.js.erb
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
<%
# first we need to force init translations or there wouldn't be any
I18n.backend.send(:init_translations)
%>;
I18n.translations = <%= I18n.backend.send(:translations).to_json.html_safe %>;
I18n.fallbacks = true;
I18n.fallbacks = true;