8000 The 'default' domain for translation files · Issue #14390 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

The 'default' domain for translation files #14390

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

Closed
34rc1n opened this issue Oct 11, 2020 · 3 comments
Closed

The 'default' domain for translation files #14390

34rc1n opened this issue Oct 11, 2020 · 3 comments

Comments

@34rc1n
Copy link
34rc1n commented Oct 11, 2020

I have spent a lot of time wondering why my new translation files are not being recognized.
The issue was that they were namend "en.yaml" "en.php" etc. (no domain defined)

The manual does not state that domain part is required.

domain: An optional way to organize messages into groups. Unless parts of the application are explicitly separated from each other, it is recommended to only use default messages domain;

Please give some information about that here.. https://symfony.com/doc/current/translation.html#translation-resource-locations

@Matts
Copy link
Matts commented Oct 15, 2020

Will look at this. Maybe instead of optional, we should say:

domain: Domains are a way to organize messages into groups. Unless parts of the application are explicitly separated from each other, it is recommended to only use default messages domain; (e.g. messages.en.yaml)

@34rc1n
Copy link
Author
34rc1n commented Oct 15, 2020

You could write in addition.
"If no domains will be explicitly defined Symfony will look for "messages" domain (e.g. messages.en.yaml)"

@Matts
Copy link
Matts commented Oct 16, 2020

changed 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0