This commit is contained in:
@@ -77,7 +77,7 @@ class LanguageService {
|
||||
if (!env.TOLGEE_API_KEY) {
|
||||
throw new Error('TOLGEE_API_KEY not set')
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await fetch(url, {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
@@ -101,6 +101,9 @@ class LanguageService {
|
||||
}
|
||||
|
||||
return translations
|
||||
} catch (e) {
|
||||
console.error('Failed to get language data', e, JSON.stringify(e))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user