#105 [flags] Oriented Aroace, Łoś

This commit is contained in:
Avris 2020-11-23 17:18:12 +01:00
parent 93936b42f9
commit 5d17d85ce8
3 changed files with 16 additions and 3 deletions

View File

@ -105,14 +105,27 @@ export default {
LOCALES: locales,
FLAGS: buildDict(function *() {
for (let flag of fs.readdirSync(__dirname + '/static/flags/')) {
let flagDisplay = flag
.replace(new RegExp('\.png$'), '')
.replace(new RegExp('_', 'g'), '')
.trim();
if (flag.startsWith('.')) {
continue;
}
if (flag.startsWith('-')) {
const tell = '-' + config.locale + '-';
if (flag.startsWith(tell)) {
flagDisplay = flagDisplay.substring(tell.length);
} else {
continue;
}
}
yield [
flag.replace(new RegExp('\.png$'), ''),
flag.replace(new RegExp('\.png$'), '')
.replace(new RegExp('_', 'g'), '')
.trim()
flagDisplay,
];
}
}),

BIN
static/flags/-pl-Łoś.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB