2013-04-15 42 views
0

使用WinJS.Resources.processAll WinJS使用的是系統語言,這很好。此MSDN網站上的示例顯示如何更改語言/上下文以更改單個字符串:http://msdn.microsoft.com/en-us/library/windows/apps/hh465248.aspx#loading_strings_for_a_specific_language_or_context如何切換WinJS.Resources.processAll的語言?

但是,只要WinJS.Resources.processAll會改變一大堆字符串,怎麼可能改變語言呢?

// (?) switch language just for the next call (?) 
WinJS.Resources.processAll(target).next(function() { 
    // (?) switch language back (?) 
}); 

回答