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

What about translation variables? #129

Open
WatheqAlshowaiter opened this issue Mar 13, 2022 · 2 comments
Open

What about translation variables? #129

WatheqAlshowaiter opened this issue Mar 13, 2022 · 2 comments

Comments

@WatheqAlshowaiter
Copy link

What is the best practice for the translation variables?

for example __('some variable')

do we do it as snake_case or kebab-case or camelCase?

@JanKrb
Copy link
Contributor

JanKrb commented Oct 16, 2022

In the official docs, there is no best practise stated as I know. According to the official Laravel translation strings (in this example, the validation rules), Laravel is using snake_case.

Example:
https://github.com/laravel/laravel/blob/9.x/lang/en/validation.php#L17

A best practise on that should be added to the docs I guess.

@FranciscoCaldeira
Copy link
Contributor

FranciscoCaldeira commented Feb 22, 2024

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