i18n.getMessage()

Read More at MDN Docs

Safe to Use

i18n.getMessage() is not safe to use.

It’s supported by 54% of global browsers.

Browsers

ChromeFeb 8, 2012v17.0.0
26%100%
100% of Chrome users are running a supported version.
SafariSep 16, 2020v14.0.0
5%93%
There are no users of Safari running a supported version.
EdgeAug 2, 2016v14.0.0
5%100%
100% of Edge users are running a supported version.
FirefoxMar 8, 2016v45.0.0
3%100%
100% of Firefox users are running a supported version.

Version Breakdown

 
Agent
Support
Adoption
Chrome
Feb 8, 2012 v17.0.0
26%100%
100% of Chrome users are running a supported version.
Feb 8, 2012 – Latest
v17.0.0+
26%100%

Full Support

Edge
Aug 2, 2016 v14.0.0
5%100%
100% of Edge users are running a supported version.
Aug 2, 2016 – Latest
v14.0.0+
5%100%

Full Support

Throws an exception instead returning an empty string if the message does not exist.

Expects substitutions to be strings, while other browsers allow any value which is then converted to a string.

Firefox
Mar 8, 2016 v45.0.0
3%100%
100% of Firefox users are running a supported version.
Mar 8, 2016 – Latest
v45.0.0+
3%100%

Full Support

Firefox 47 and earlier returns "??" instead of "" if the message is not found in _locales, bug 1258199 changed this act to match Chrome, landed on Firefox 48.

Firefox for Android
Aug 2, 2016 v48.0.0
Firefox for Android supports this feature.
Aug 2, 2016 – Latest
v48.0.0+

Full Support

Opera
Jul 2, 2013 v15.0.0
1%100%
100% of Opera users are running a supported version.
Jul 2, 2013 – Latest
v15.0.0+
1%100%

Full Support

Safari
Sep 16, 2020 v14.0.0
5%93%
There are no users of Safari running a supported version.
Sep 16, 2020 – Latest
v14.0.0+
5%93%

Full Support

Safari on iOS
Sep 20, 2021 v15.0.0
15%93%
There are no users of Safari on iOS running a supported version.
Sep 20, 2021 – Latest
v15.0.0+
15%93%

Full Support

Contribute