문제

I have a Magento 2 with a multiple website/store/storeview setup. Now I want to create a list of links with the text "Continue on [store_name] store". The problem is that I want to translate it in the language of the [store_name].

If I use the __() function all labels are p.e. in English or French, ...

My question is: how can I get a specific translation for a specific language that is not the current one?

So far I found some code:

$this->_dictionary->getDictionary($lang_code)['This is the string' . $store->getName()]

But this doesn't seem to work. The getDictionary($lang_code) is empty.

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top