Skip to content

Commit

Permalink
Enable I18n fallback for the embed page
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jan 20, 2025
1 parent af880d1 commit ebeef28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/assets/javascripts/embed.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ if (navigator.languages) {
I18n.locale = navigator.language;
}

I18n.default_locale = <%= I18n.default_locale.to_json %>;
I18n.fallbacks = true;

window.onload = function () {
var query = (window.location.search || '?').slice(1),
args = {};
Expand Down

0 comments on commit ebeef28

Please sign in to comment.