1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-11-25 22:32:52 +02:00

Adding missing translations

This commit is contained in:
Patrik J. Braun
2023-01-10 20:38:26 +01:00
parent 707e1eb1dd
commit fb9f8bd38e
15 changed files with 773 additions and 1782 deletions

View File

@@ -127,7 +127,7 @@ const getLanguages = (): any[] | string[] => {
}
const dirCont = fs.readdirSync('./src/frontend/' + translationFolder);
const files: string[] = dirCont.filter((elm): any => {
return elm.match(/.*\.[a-zA-Z]+\.(xlf)/gi);
return elm.match(/.*\.[a-zA-Z]+(-[a-zA-Z]+)?\.(xlf)/gi);
});
// get languages to filter