MCPcopy Create free account
hub / github.com/TGX-Android/Publisher / fetchAvailableLanguageCodes

Function fetchAvailableLanguageCodes

main.js:1184–1196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1182}
1183
1184async function fetchAvailableLanguageCodes () {
1185 try {
1186 const result = await fetchHttp('https://translations.telegram.org/languages/list/android_x');
1187 if (typeof result === 'string') {
1188 return JSON.parse(result);
1189 } else {
1190 console.error('fetchAvailableLanguageCodes result is not a string', result);
1191 }
1192 } catch (e) {
1193 console.log('fetchAvailableLanguageCodes failed', e);
1194 }
1195 return ['en'];
1196}
1197
1198async function modifyNativeDebugSymbolsArchive (filePath) {
1199 let allowExtraDebugSymbols = false;

Callers

nothing calls this directly

Calls 1

fetchHttpFunction · 0.85

Tested by

no test coverage detected