validation

This commit is contained in:
2026-01-09 16:54:42 +02:00
parent 4470d922b7
commit 84cd04c94f
26 changed files with 770 additions and 159 deletions
@@ -0,0 +1,11 @@
export function getSelectedLocales() {
let value = $state(localStorage.getItem("selectedLocales"));
if (value == "" || !value) {
return [];
}
return value.split(",");
}
export function getLocaleName(channel, id) {
return channel.locales.find((locale) => locale.id === id).name;
}