1

In WordPress, I can easily get the translated string with current language with

$s = __('string', 'domain');

However, if I am currently in en, if I want to get the Japanese version of string, is it possible?

Something like below..

$s = __('string', 'domain', 'ja');

How to do with the same effect?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.