Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to render a page with culture? #5795

Closed
niknikita opened this issue Mar 24, 2020 · 2 comments
Closed

How to render a page with culture? #5795

niknikita opened this issue Mar 24, 2020 · 2 comments

Comments

@niknikita
Copy link

niknikita commented Mar 24, 2020

Hi!
How to render a page with culture? for example:
localhost/en/index
localhost/en/page
...
localhost/ru/How
localhost/en/index
localhost/en/page
...
localhost/ru/

how to configure routing for a page render with the specified culture?

@hishamco
Copy link
Member

For more details about localization & routing please follow the this

@sebastienros
Copy link
Member

@niknikita

Enable the Localization feature
Then in the Localization settings, add the languages you want to support
Add the Localization part to the types you want to be localizable
In the AutoroutePart of the type, use something like {{ ContentItem.Content.LocalizationPart.Culture }}/{{ ContentItem | display_text | slugify }}

Then create content items and localize them. Their routes will have the culture in the prefix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants