I got some garbage related to Markdown when adding a first field to a new fieldset
my_base_site_folder/resources/lang/fr/ add a file called markdown.phpThere isn't any problem when this markdown file is ONLY located in my_base_site_folder/vendor/statamic/cms/resources/lang/fr


Statamic version: 3.0.0.-beta-{34}
PHP version: 7.{4.2}
Install method (choose one):
statamic/statamicNow solved....NOT
Sorry...It is apparently solved in 3.0.7 but when I update "my" French localisation files for the CP, I get this error back. So I have to reopen it.
And I just don't quite get why I have this problem...
OK, found the issue: see "How to reproduce" above
@ebeauchamps I've swapped my fresh Statamic install's locale in config/app.php to fr and created the file ( resources/lang/fr/markdown.php) but I'm unable to replicate the issue.
Should I be doing something else in order to replicate this?
Probably: you should display the CP in French I guess (in your user.yaml file, put
preferences:
locale: fr
good to know: the markdown.php file I put in this folder is the same as the one found in the vendor folder
I did not have this issue before beta34 but I guess the /resources/lang folder should now remain empty (apart from the en folder)?
Thanks for your response! Although, I still can't seem to reproduce it... the text Markdown displays, which I think should be the case until something overrides it (correct me if I'm wrong).


Would you mind creating up a fresh Statamic site to reproduce the issue yourself and let me know if you still encounter the issue.
Sure! but later on, it's midnight here!! I'll let you know.
my_base_site_folder/resources/lang/fr/ add the markdown.php file already located in my_base_site_folder/vendor/statamic/cms/resources/lang/frThere isn't any problem when this markdown.php file is ONLY located in my_base_site_folder/vendor/statamic/cms/resources/lang/fr


When working on my translation updates, I put the working copy of my files in my_base_site_folder/resources/lang/
That includes my fr.json file and my fr folder
I am doing this in order to check for my translations as it should override the French files located in my_base_site_folder/vendor/statamic/cms/resources/lang/
Actually, I recently discovered that:
my_base_site_folder/resources/lang/ in Statamic?my_base_site_folder/vendor/statamic/cms/resources/lang/ ?The "json" translations are considered global. You can't override them in a vendor directory.
So you need to put it in resources/lang/fr.json. It's just the way Laravel works.
The other php based translation files _are_ specific to the vendor (Statamic), so you need to put them in resources/lang/vendor/statamic/fr/markdown.php.
However, if you're just trying to test out some translations that you plan to PR into Statamic, you could consider editing them in vendor/statamic/cms/resources/lang.