header {
background-image: url("../images/__MSG_extensionName__/header.png");
}Internationalization / notebook
Internationalization
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
let title = browser.i18n.getMessage("notificationTitle");
let content = browser.i18n.getMessage("notificationContent", message.url);header {
background-image: url("../images/__MSG_@@ui_locale__/header.png");
}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;
}direction: ltr;
padding-left: 0;
padding-right: 1.5em;direction: rtl;
padding-right: 0;
padding-left: 1.5em;