feat: add toolbar + notifications

This commit is contained in:
2025-04-30 15:34:21 +02:00
committed by Louis Heredero
parent 609b32d09a
commit fef6c727cb
8 changed files with 285 additions and 35 deletions

View File

@ -75,10 +75,10 @@ export function getLanguageAliases(langTag) {
export function findLanguage(value) {
for (const lang in LANGUAGES) {
const aliases = getLanguageAliases(lang)
const matches = aliases.map(a => {
const matches = aliases.some(a => {
return new RegExp("\\b" + a + "\\b").test(value)
})
if (matches.some(v => v)) {
if (matches) {
return lang
}
}