Replies: 1 comment
-
Any approach from Laravel themselves in the meantime? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I just tried new starter kits and noticed that there is no built-in support for localization. If you create a website in another language or in multiple languages you have to search for texts in all components and update them all.
for example the vue starter kit's `VerifyEmail´ component looks like this:
To make the site multilingual you have to replace all texts with keys and add
:
to attributes everywhere.I would like to propose a change to handling texts. Instead of writing texts hard coded in the components, define them all in a file using keys and use the keys in the components. After changes
VerifyEmail
component would look like this:and here
translations.ts
file:if I want to add german support, all I have to do is to modify this file. No need to modify all components.
Results:
page
objectLooking forward to hearing your thoughts!
Beta Was this translation helpful? Give feedback.
All reactions