check overrides for parent locale when compiling language files#242
check overrides for parent locale when compiling language files#242LukeTowers merged 9 commits intodevelopfrom
Conversation
mjauvin
commented
Jul 19, 2021
- fallback to parent locale for client localization strings overrides
- fallback to parent locale for client localization strings overrides
artisan compile lang must check parent locale overrides
artisan compile lang must check parent locale overridesartisan compile lang must check overrides for parent locale
artisan compile lang must check overrides for parent locale|
@mjauvin @bennothommo do you guys think it's worth unit testing this or no? |
|
I guess so, yeah. |
|
Any idea on how to approach this @LukeTowers ? |
|
Probably would need to break it into a separate method to be more testable? Isn't there anything preexisting in the lang class that can handle getting and merging the messages appropriately? |
Yes! All the test cases!
You should be able to test this method direct, if you use the |
|
This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
|
@mjauvin @bennothommo had a bit of time free this morning so I've added a test for lang compiling. Let me know what you guys think :) |
* develop: (25 commits) Support embedded data URIs in the list image column type Make some adjustments to the readme content Update banner in readme Add new GitHub banner Documentation with icons (#347) Limit options shown in group filter, apply scope when retrieving filtered options Add Exception on wrong relation type in relation formwidget (#334) Redesigned color picker widget (#324) Add winter:test command (#202) Use the correct backend timezone config key (#337) Get changelog only of the current branch Fix Markdown editor sizing issue on Chrome. Check overrides for parent locale when compiling language files (#242) Fixing commas in English translation files (#305) Added Latvian translations for Allowed IP messages (#304) Add missing filter translations (#303) Clean up newlines Update Russian language (#302) Fix issue present in overriding RelationController partials using the default code Maintenance Allowed IP list (#147) ...