Skip to content

Commit

Permalink
Fix get_message on intl_icu if domain is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
spras committed Jan 12, 2021
1 parent fefd5fb commit 46fecbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/js/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
if (has_message(_locale, _domains[i], id) ||
has_message(nationalLocaleFallback, _domains[i], id) ||
has_message(localeFallback, _domains[i], id)) {
_domain = _domains[i];
_domain = _domains[i].replace(INTL_DOMAIN_SUFFIX, '');

break;
}
Expand Down

0 comments on commit 46fecbe

Please sign in to comment.