none
Apps for Office API - Content language localization RRS feed

  • Question

  • We are in the process of implementing localization for our app, and need to determine the nationality of the users language and data possibly separately, especially in cases where the language can be similar to another but the data formats are different, as well as support all languages/formats in Excel 2013.

    Context.contentLanguage (http://msdn.microsoft.com/en-us/library/office/fp161064%28v=office.15%29.aspx) and Context.displayLanguage (http://msdn.microsoft.com/en-us/library/office/fp161140%28v=office.15%29.aspx) look to be available for this explicit purpose, but I seem to have come across an issue. This can be seen by following the example in Context.contentLanguage:

    1) Create a new Apps for Office project.

    2) In Home.js change the 'getDataFromSelection' function to:

    function getDataFromSelection() {
        	app.showNotification(Office.context.contentLanguage);
        }

    3) Change Excel Content Language to New Zealand (File > Options > Language) and restart Excel.

    http://www.mediafire.com/convkey/5a09/nucq1e55e39moqefg.jpg


    4) Run App and press button (Says 'en-US'):

    http://www.mediafire.com/convkey/1fe2/e6ofasx7oy5cq3cfg.jpg


    NOTE: This same thing happens for 'Context.displayLanguage'

    • Edited by Sean.Sobey Monday, September 15, 2014 7:13 AM
    Monday, September 15, 2014 7:11 AM

All replies

  • Hi,

    Thank you for posting in the MSDN Forum.

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Sorry for any inconvenience and have a nice day!


     


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, September 17, 2014 2:30 AM
    Moderator
  • Hi Luna Zhang,

    Thanks for the reply, and we look forward to any updates.

    Tuesday, September 30, 2014 7:10 AM