Localized strings with a dot in their name are unrenderable
ERPedersen opened this issue ยท 6 comments
ERPedersen commented
strings.php
return [
'info' => 'More info',
'link.info' => 'Get more info',
];
Lang.get('strings.info'); // Outputs "More info"
Lang.get('strings.link.info'); // Outputs "strings.link.info"
Seems like if my strings are separated by a dot, they are unrenderable
rmariuzzo commented
This will be addressed at: rmariuzzo/Lang.js#54
I will keep this issue open until solved at Lang.js and pulled into this repo.
ERPedersen commented
Awesome. Thanks for your feedback :)
rmariuzzo commented
@ERPedersen progress has been made. I'm waiting to support a tricky test, then it will be merged ASAP.
ERPedersen commented
Any progress on this yet?
rmariuzzo commented
Sorry for the long wait @ERPedersen and all other devs. This has been published now!
catlabs commented
Hi Rubens,
I just noticed another small issue if you are interested in fixing it :-)
layout.php
return [
'test' => 'this is a test',
'test.sub' => 'this is a sub test'
]
Lang.get('layout.test'); // Outputs "this is a test"
Lang.get('layout.test.sub'); // Outputs "this is a test"
This works in Laravel