From 30221e4e9f09f98074219a8fa6e1aa0a67615ccc Mon Sep 17 00:00:00 2001 From: wickedOne Date: Thu, 9 Feb 2023 04:04:56 +0100 Subject: [PATCH] phrase locale name convention - added some documentation regarding the naming convention which should be used in phrase --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index bfc84ba..a43830e 100644 --- a/README.md +++ b/README.md @@ -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.