-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Closed
Copy link
Description
Symfony version(s) affected: 5.3.6
Description
When uploading to Loco by using push
command, it appears (in Loco dashboard) dots have been replaced by hyphens, as push
command seems to do this replacement and then fails once pull
is done
How to reproduce
- Create a project and install:
composer require symfony/translation
and Loco package bycomposer require symfony/loco-translation-provider
and add configuration for locales and domains intranslations.yaml
. Also create a project in Loco (localise.biz) and configure itsAPI_KEY
for read and write permissions and place it in.env
file (LOCO_DSN
) - Create one controller and use
TranslatorInterface
to have at least one translatable keystring (with dots) - In the console:
debug/translation
to confirm there are missing strings (one in this case) - In the console:
symfony console translation:update en --force
to generate the local file undertranslations
folder - In the console:
translation:push
to upload to Loco - Check in Loco that it was uploaded and appears incorrectly with hyphens and not with dots
Additional context
In the controller we have this line: $translated = $translator->trans('index.home.msg');
In the generated translations file under /translations
folder we have these lines:
<trans-unit id="FNdkzeB" resname="index.home.msg">
<source>index.home.msg</source>
<target>__index.home.msg</target>
</trans-unit>
darthf1