MDN self-hosted library · e01.org

Internationalization

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

css
header {
  background-image: url("../images/__MSG_extensionName__/header.png");
}
js
let title = browser.i18n.getMessage("notificationTitle");
let content = browser.i18n.getMessage("notificationContent", message.url);
css
header {
  background-image: url("../images/__MSG_@@ui_locale__/header.png");
}
css
body {
  direction: __MSG_@@bidi_dir__;
}

div#header {
  margin-bottom: 1.05em;
  overflow: hidden;
  padding-bottom: 1.5em;
  padding-__MSG_@@bidi_start_edge__: 0;
  padding-__MSG_@@bidi_end_edge__: 1.5em;
  position: relative;
}
css
direction: ltr;
padding-left: 0;
padding-right: 1.5em;
css
direction: rtl;
padding-right: 0;
padding-left: 1.5em;