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?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.