enable lint prefer_interpolation_to_compose_strings (#83407)

This commit is contained in:
Alexandre Ardhuin
2021-06-01 20:14:06 +02:00
committed by GitHub
parent 71e711547f
commit 34059eec2c
96 changed files with 367 additions and 345 deletions

View File

@@ -35,7 +35,7 @@ void loadDateIntlDataIfNotLoaded() {
} else if (codes.length == 3) {
countryCode = codes[1].length < codes[2].length ? codes[1] : codes[2];
}
locale = codes[0] + (countryCode != null ? '_' + countryCode : '');
locale = codes[0] + (countryCode != null ? '_$countryCode' : '');
if (initializedLocales.contains(locale))
return;
initializedLocales.add(locale);