i18n.getMessage does not support integer type substitutions

Fixed, not yet flighted Issue #8143154

Details

Created
Jul 11, 2016
Privacy
This issue is public.
Found in build #
14.14385
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

As per: https://developer.chrome.com/extensions/i18n#method-getMessage

Chrome supports substitutions for “any” (including integer). We only appear to support strings and arrays. We should support integers.

Example:

"searchHelperTopMatchesPers": {

      "description": "desc",

      "message": "$num$ Related Results in your
notes",

      "placeholders": {

         "num": {

            "content": "$1",

            "example": “3”

         }

      }

   }

browser.i18n.getMessage("searchHelperTopMatchesPers",

Expected:

Output: “3 Related Results in your notes”

Actual:

Throws exception - Error: Invocation of form i18n.getMessage(string, integer) doesn’t match definition i18n.getMessage(string messageName, optional string or array substitutions).

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Sebastian P.”

      Changed Steps to Reproduce

      Changed Title from “i18n.getMessage does not support "any" type for substitutions (strings only)” to “i18n.getMessage does not support integer type substitutions”

      Changed Steps to Reproduce

      Changed Status to “Confirmed”

      Changed Assigned To from “Sebastian P.” to “Anshul K.”

      Changed Assigned To from “Anshul K.” to “Ashwin K.”

      Changed Assigned To from “Ashwin K.” to “Anshul K.”

      Changed Assigned To to “Akshay P.”

      Changed Assigned To from “Akshay P.” to “Anshul K.”

      Changed Status from “Confirmed” to “In progress”

      Changed Status from “In progress” to “In code review”

      Changed Assigned To from “Anshul K.” to “Rory F.”

      Changed Status from “In code review” to “Fixed”

      Changed Status from “Fixed” to “Fixed, not yet flighted”

    You need to sign in to your Microsoft account to add a comment.

    Sign in