You've already forked joplin
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:
@@ -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})`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user