What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
In *stores.php* we have locales like this: Here in this array, key 'en' and 'de', what does it re
In stores.php we have locales like this: Here in this array, key 'en' and 'de', what does it represent?
'locales' => [ // first entry is default 'en' => 'en_US', 'de' => 'de_DE', ],
Is it used for country? or we can add anything as key and key is not used anywhere? I have 5+ locales available for multiple countries like fr_CA, en_CA and es_CA.
Comments
-
This is default language used for API, not sure how its effected by you adding further locales as i have not tried, but the first locale in array is the default. So if βde_DEβ was moved to the first position it would make your default responses from Glue API return in German
0 -
ok. Thanks @U03H06V0LAY
if I have three locales like en_US, en_GB and en_AU, I can not keep the same en key right?
0 -
no, iβd imagine the key must be unique, so using the postfix of βGBβ or βAUβ might be the way to go in that scenario
0 -
ok. Thanks @U03H06V0LAY It means i have to keep unique key regardless of multiple locale in one county. in glue that key will be used to return particular locale value?
0 -
the key will be used to determine the language used in the Glue response
0 -
Ok @U03H06V0LAY Thanks for the help!
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random