1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-05 22:57:29 +02:00

Chore: Apply eslint rules

This commit is contained in:
Laurent Cozic
2019-09-19 22:51:18 +01:00
parent ab29d7e872
commit e648392330
185 changed files with 1196 additions and 1196 deletions

View File

@@ -218,7 +218,7 @@ function supportedLocalesToLanguages(options = null) {
const stat = stats[locale];
if (options.includeStats && stat) {
output[locale] += ' (' + stat.percentDone + '%)';
output[locale] += ` (${stat.percentDone}%)`;
}
}
return output;
@@ -281,7 +281,7 @@ function countryDisplayName(canonicalName) {
if (languageCode == 'zh' && (countryCode == '' || countryCode == 'TW')) extraString = '繁體'; // "Traditional" in "Traditional Chinese"
if (extraString) output += ' (' + extraString + ')';
if (extraString) output += ` (${extraString})`;
return output;
}
@@ -312,7 +312,7 @@ function _(s, ...args) {
try {
return sprintf(result, ...args);
} catch (error) {
return result + ' ' + args.join(', ') + ' (Translation error: ' + error.message + ')';
return `${result} ${args.join(', ')} (Translation error: ${error.message})`;
}
}