Calling Developers!
We are reenergizing our code contribution process! Learn More

Adding locale

Options
renate.boevink
renate.boevink Product Owner @ Zolemba Spryker Customer Posts: 9 🧑🏻‍🚀 - Cadet
edited August 2023 in Spryker Development

Hey

I want add a new locale to our shops. I can add the locale to the import file but should I add it also somewhere in the code?

Tagged:

Best Answer

  • renate.boevink
    renate.boevink Product Owner @ Zolemba Spryker Customer Posts: 9 🧑🏻‍🚀 - Cadet
    Answer ✓
    Options

    Just adding it to the stores.php. but I forgot to change the key

Answers

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,029 ⚖️ - Guardians (admin)
    Options

    Heyhey,
    is this question about the locale of a store itself or about the setup of multiple stores?

    All the best,

    Florian

  • renate.boevink
    renate.boevink Product Owner @ Zolemba Spryker Customer Posts: 9 🧑🏻‍🚀 - Cadet
    Options

    Hey, already found the solution myself.

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,029 ⚖️ - Guardians (admin)
    Options

    Now I am curious :D
    What was your solution?

  • renate.boevink
    renate.boevink Product Owner @ Zolemba Spryker Customer Posts: 9 🧑🏻‍🚀 - Cadet
    Answer ✓
    Options

    Just adding it to the stores.php. but I forgot to change the key

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,029 ⚖️ - Guardians (admin)
    Options

    Ahh, ok, cool :) Thanks for sharing it with us. 💪

    FYI: I will move this thread out of the development environment subcategory to the general spryker dev category.

    All the best,

    Florian

  • renate.boevink
    renate.boevink Product Owner @ Zolemba Spryker Customer Posts: 9 🧑🏻‍🚀 - Cadet
    Options

    Hey,

    Got another question regarding this item

    I have two stores UK and COM. they can share the same URL structure for pages/categories/product, but I want them to have different navigation items. Because UK has less items to sell.
    What way would be best to do this?

    Currently they both have locale en_GB but the COM should get en_US.