Skip to content

docs: add how to use locale routes#884

Merged
kenjis merged 2 commits intocodeigniter4:developfrom
kenjis:docs-add-locale-routes
Oct 9, 2023
Merged

docs: add how to use locale routes#884
kenjis merged 2 commits intocodeigniter4:developfrom
kenjis:docs-add-locale-routes

Conversation

@kenjis
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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