Skip to content

Commit

Permalink
phrase locale name convention
Browse files Browse the repository at this point in the history
- added some documentation regarding the naming convention which
  should be used in phrase
  • Loading branch information
wickedOne committed Feb 9, 2023
1 parent 97f33a8 commit 30221e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ framework:
locales: ~
```

## phrase locale names

translations being imported using the symfony xlf format in phrase, locales are matched on locale name in phrase.
therefor it's necessary the locale names should be as defined in [RFC4646](https://www.ietf.org/rfc/rfc4646.txt) (e.g. pt-BR rather than pt_BR).
not doing so will result in phrase creating a new locale for the imported keys.

## locale creation

if you define a locale in your `translation.yaml` which is not configured in your phrase project, it will be automatically created. deletion of locales however, is (currently) not managed by this provider.
Expand Down

0 comments on commit 30221e4

Please sign in to comment.