Create a base_locale attribute onto I18n object

- if "fr": return "fr"
 - if "fr_FR": return "fr"
This commit is contained in:
Jean-Baptiste Bellet
2021-07-23 14:14:12 +02:00
parent c9159a3096
commit f39cc49cd2
2 changed files with 2 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ $(document).ready(function() {
altInput: true,
altFormat: Spree.translations.flatpickr_date_format,
dateFormat: "Y-m-d",
locale: I18n.locale,
locale: I18n.base_locale,
plugins: [
ShortcutButtonsPlugin({
button: [{