Skip to content

Modular logistics and supply chain operating system (LSOS)

fix: correct locale format from en-us to en-US

roncodes0f9cd52bb40f
diff --git a/console/app/routes/application.js b/console/app/routes/application.js
index 28aae62e..83f0d25f 100644
--- a/console/app/routes/application.js
+++ b/console/app/routes/application.js
@@ -124,11 +124,11 @@ export default class ApplicationRoute extends Route {
* Initializes the application's locale settings based on the current user's preferences.
*
* This method retrieves the user's preferred locale using the `getOption` method from the `currentUser` service.
- * If no locale is set by the user, it defaults to `'en-us'`. It then sets the application's locale by calling
+ * If no locale is set by the user, it defaults to `'en-US'`. It then sets the application's locale by calling
* the `setLocale` method of the `intl` service with the retrieved locale.
*/
initializeLocale() {
- const locale = this.currentUser.getOption('locale', 'en-us');
+ const locale = this.currentUser.getOption('locale', 'en-US');
this.intl.setLocale([locale]);
}
diff --git a/console/config/ember-intl.js b/console/config/ember-intl.js
index 14a5a788..79f46489 100644
--- a/console/config/ember-intl.js
+++ b/console/config/ember-intl.js
@@ -14,7 +14,7 @@ module.exports = function (/* environment */) {
* @type {String?}
* @default "null"
*/
- fallbackLocale: 'en-us',
+ fallbackLocale: 'en-US',
/**
* Path where translations are stored. This is relative to the project root.
diff --git a/console/translations/en-us.yaml b/console/translations/en-US.yaml
similarity index 100%
rename from console/translations/en-us.yaml
rename to console/translations/en-US.yaml