remove setLangAsync-method

This commit is contained in:
2025-09-17 10:37:43 +02:00
parent 660a4c24df
commit 7bc6cc92a0
2 changed files with 1 additions and 12 deletions

View File

@@ -25,17 +25,6 @@ function postEnvelope(annotations) {
return fetch(`/api/annotation`, options)
}
async function setLangAsync(language, flagCode) {
document.getElementById('selectedFlag').className = 'fi ' + flagCode + ' me-2';
await fetch(`/api/localization/lang/${language}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
}
})
}
async function setLanguage(language) {
const hasLang = await fetch('/api/localization/lang', {