cherry pick

This commit is contained in:
2025-09-03 12:28:57 +08:00
parent 41df5739c3
commit 0974777be6
2 changed files with 2 additions and 2 deletions

View File

@@ -357,7 +357,7 @@ $$$('#group_by', 'change', (e) => {
for (let target of targets) {
for (let key of Object.keys(countries)) {
if (target.predicate == null || target.predicate.includes(key)) {
if (target.predicate.length == 0 || target.predicate.includes(key)) {
if (target.locale === locale) {
results[key] = countries[key];
}

View File

@@ -61,7 +61,7 @@ class Greetings:
@staticmethod
def presets():
return [
Greetings("en", "Europe/London", "Hello" , "Good morning", "Good afternoon" , "Good evening", None),
Greetings("en", "Europe/London", "Hello" , "Good morning", "Good afternoon" , "Good evening", []),
Greetings("fr", "Europe/Paris" , "Bonjour", None , "Bon après-midi" , "Bonsoir" , ['法国', '比利时']),
Greetings("de", "Europe/Berlin", "Hallo" , "Guten Morgen", "Guten Tag" , "Guten Abend" , ['德国', '奥地利', '瑞士']),
Greetings("it", "Europe/Rome" , "Ciao" , "Buongiorno" , "Buon pomeriggio", "Buonasera" , ['意大利']),