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

docs: add how to use locale routes #884

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

kenjis
Copy link
Member

@kenjis kenjis commented Oct 9, 2023

Description
See #883 (comment)

Checklist:

  • Securely signed commits
  • [] Component(s) with PHPDoc blocks, only if necessary or adds value
  • [] Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@kenjis kenjis added the documentation Improvements or additions to documentation label Oct 9, 2023

## Use Locale Routes

You can use the `{locale}` placeholder in your routes
Copy link
Collaborator

@datamweb datamweb Oct 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the way to use the following items does not change?

public array $redirects = [
'register' => '/',
'login' => '/',
'logout' => 'login',
'force_reset' => '/',
];

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

login is a named route, so not change.

@kenjis kenjis merged commit 312f367 into codeigniter4:develop Oct 9, 2023
1 check passed
@kenjis kenjis deleted the docs-add-locale-routes branch October 9, 2023 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants