cherry pick
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
2
main.py
2
main.py
@@ -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" , ['意大利']),
|
||||
|
||||
Reference in New Issue
Block a user