Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what about multi-language case ? #17

Closed
mikimaine opened this issue Dec 3, 2015 · 1 comment
Closed

what about multi-language case ? #17

mikimaine opened this issue Dec 3, 2015 · 1 comment

Comments

@mikimaine
Copy link

what i want to say is there is no way to manage language assets of each theme .
for example like this

       resources /
                        lang/
                                t1/
                                   en/
                                   fr/   
                                 t2/
                                   en/
                                   fr/
                        view/
                                t1/
                                t2/
@igaster
Copy link
Owner

igaster commented Dec 11, 2015

String translation is handled natively by Laravel. However if you want to use different assets depending on current language you can set a custom key to a theme eg Theme::configSet('lang', 'en'), and use the curly brackets syntax to create paths using this key in Blade. eg:

{{Theme::url('flag-{lang}.png}}

This will be tranlated to a path like:

"theme-name\flag-en.png"

Hope this helps...

@igaster igaster closed this as completed Dec 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants