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

Localize route paths #165

Merged
merged 13 commits into from
Nov 18, 2024
Merged

Localize route paths #165

merged 13 commits into from
Nov 18, 2024

Conversation

Baptistemontan
Copy link
Owner

@Baptistemontan Baptistemontan commented Nov 10, 2024

Allow the creation of localized route segments:

use leptos_i18n::i18n_path;

<Route path=i18n_path!(Locale, |locale| td_string!(locale, path_name)) view=.. />

If used outside a I18nRoute, it will not have any effect and only produce paths with the default locale.

close #164

@Baptistemontan Baptistemontan mentioned this pull request Nov 10, 2024
@Baptistemontan Baptistemontan merged commit 959d365 into master Nov 18, 2024
28 checks passed
@Baptistemontan Baptistemontan deleted the i18n_path branch November 18, 2024 00:50
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

Successfully merging this pull request may close these issues.

Translated routes
1 participant