Skip to content

Commit 7c503e5

Browse files
authored
Merge pull request #181 from jeevatkm/v3.3.0-development
for v3.3.0
2 parents cffbed9 + a99e13d commit 7c503e5

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<p align="center">Outlook style headers and few goodies for Thunderbird</p>
55
</p>
66
<p align="center">
7-
<a href="https://github.com/jeevatkm/ReplyWithHeaderMozilla/releases/latest" alt="Version"><img src="https://img.shields.io/badge/version-3.2.0-blue.svg" alt="Version" /></a> <a href="LICENSE" alt="LICENSE"><img src="https://img.shields.io/github/license/jeevatkm/ReplyWithHeaderMozilla.svg" alt="LICENSE" /></a> <a href="http://myjeeva.com/replywithheader-mozilla" alt"Home page"><img src="https://img.shields.io/badge/Homepage-blue" alt"Home page" /> </a>
7+
<a href="https://github.com/jeevatkm/ReplyWithHeaderMozilla/releases/latest" alt="Version"><img src="https://img.shields.io/badge/version-3.3.0-blue.svg" alt="Version" /></a> <a href="LICENSE" alt="LICENSE"><img src="https://img.shields.io/github/license/jeevatkm/ReplyWithHeaderMozilla.svg" alt="LICENSE" /></a> <a href="http://myjeeva.com/replywithheader-mozilla" alt"Home page"><img src="https://img.shields.io/badge/Homepage-blue" alt"Home page" /> </a>
88
</p>
99

1010
## Download

background.js

+10-3
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,17 @@ async function detectLocaleAndSetAsDefault() {
4141
}
4242

4343
let uiLocale = messenger.i18n.getUILanguage();
44-
let selected = rwhI18n.i18n.lang[uiLocale] ?? 'en-US';
44+
let selected = rwhI18n.i18n.lang[uiLocale];
45+
rwhLogger.debug('uiLocale:', uiLocale, 'selected:', selected);
46+
if (typeof selected === 'undefined') {
47+
rwhLogger.info(`Currently does not have support for locale '${uiLocale}', fallback to 'en-US'`);
48+
await rwhSettings.set('header.locale', 'en-US');
49+
return;
50+
}
51+
4552
let currentLocale = await rwhSettings.getHeaderLocale();
46-
rwhLogger.debug('currentLocale:', currentLocale, 'uiLocale:', uiLocale, 'selected:', selected);
47-
if (selected !== 'undefined' && currentLocale !== uiLocale) {
53+
rwhLogger.debug('currentLocale:', currentLocale);
54+
if (currentLocale !== uiLocale) {
4855
await rwhSettings.set('header.locale', uiLocale);
4956
}
5057
}

images/rwh-features.png

12.1 KB
Loading

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "ReplyWithHeader",
44
"description": "Outlook style headers and few goodies for Thunderbird",
5-
"version": "3.2.0",
5+
"version": "3.3.0",
66
"author": "Jeevanandam M.",
77
"homepage_url": "https://myjeeva.com/replywithheader-mozilla",
88
"browser_specific_settings": {

options/options.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<img id="identitySelectImg" src='/images/mail-identities.svg' width='21' height='21' title="Mail Account Identities" />
2626
<div id="multiselectIdentity" class="multiselect">
2727
<div id="selectBox" class="selectBox">
28-
<select><option>Select an Identities</option></select>
28+
<select><option>Select Identities</option></select>
2929
<div class="overSelect"></div>
3030
</div>
3131
<div id="multiselectCheckboxes"></div>

0 commit comments

Comments
 (0)