J'ai reçu cette notification ( resources / views / vendor / notifications / email.blade.php
):
{ "If youâre having trouble clicking the \":actionText\" button, copy and paste the URL below into your web browser: [:actionURL] . (:actionURL)": "Falls Du Probleme dabei hast, den \":actionText\" Button anzuklicken, rufe folgende URL auf: [:actionURL](:actionURL)" }
J'aimerais maintenant traduire celle-là en utilisant de.json
dans resource/lang
-directory:
@lang( "If youâre having trouble clicking the ":actionText" button, copy and paste the URL below\n". 'into your web browser: :actionURL', [ 'actionText' => $actionText, 'actionURL' => $actionUrl])
Toutes les autres traductions que j'ai créées de cette façon fonctionnent bien . Comment puis-je résoudre ce problème?
3 Réponses :
Supprimez simplement le point de concaténation et mettez tous les mots dans la même chaîne, comme ceci:
{ "If youâre having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser: [:actionURL](:actionURL)" : "Caso não seja possÃvel clicar no botão \":actionText\", copie e cole no seu navegador o endereço a seguir: [:actionUrl](:actionUrl) \n", }
Je viens de passer à Laravel 5.5, j'ai eu ce problème et cette réponse a résolu mon problème. Pourquoi la concaténation affecterait-elle la création de modèles?
Si vous utilisez laravel 6,7, essayez de supprimer ": actionURL" exemple:
"If youâre having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser: ": "Falls Du Probleme dabei hast, den \":actionText\" Button anzuklicken,\nrufe folgende URL auf: "
dans laravel 6 ou supérieur, vous pouvez l'utiliser dans le fichier lang.json:
"If youâre having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "translation into your favorite language"
pas besoin d'utiliser ['actionText' => $ actionText,] code > à la fin du message