Skip to content

Commit

Permalink
remove strings files
Browse files Browse the repository at this point in the history
  • Loading branch information
denniske committed Oct 19, 2023
1 parent 763238e commit 670a7e8
Show file tree
Hide file tree
Showing 66 changed files with 423 additions and 22,063 deletions.
7 changes: 1 addition & 6 deletions app/App2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import {
Environment,
IHostService,
IHttpService,
IStrings,
ITranslationService,
OS,
registerService,
Expand Down Expand Up @@ -79,7 +78,6 @@ import {getInternalLanguage, setInternalLanguage} from './src/redux/statecache';
import {ConditionalTester} from "./src/view/testing/tester";
import {getElectronPushToken, isElectron} from './src/helper/electron';
import {setAccountPushTokenElectron} from './src/api/following';
import {getAllInternalStrings, getInternalString, loadStringsAsync} from './src/helper/strings';
import {fetchJson2} from './src/api/util';
import UpdateElectronSnackbar from "./src/view/components/snackbar/update-electron-snackbar";
import OverlaySettingsPage from "./src/view/overlay.settings.page";
Expand Down Expand Up @@ -134,9 +132,6 @@ class AoeDataService implements ITranslationService {
getAoeString(str: string): string {
return getInternalAoeString(str);
}
getString(category: keyof IStrings, id: number) {
return getInternalString(category, id);
}
getLanguage(): string {
return getInternalLanguage();
}
Expand Down Expand Up @@ -881,7 +876,7 @@ export function AppWrapper() {
const language = config.language == 'system' ? getLanguageFromSystemLocale2(Localization.locale) : config.language;
// console.log('LOCAL ==> Loading AoeStrings for ' + language + ' (config.language: ' + config.language + ')');
setInternalLanguage(language);
Promise.all([loadAoeStringsAsync(language), loadStringsAsync(language)]).then(() => mutate(addLoadedLanguage(language)));
Promise.all([loadAoeStringsAsync(language)]).then(() => mutate(addLoadedLanguage(language)));
fetchAoeReferenceData();
}, [config]);

Expand Down
Loading

0 comments on commit 670a7e8

Please sign in to comment.