Skip to content

Commit

Permalink
getallstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
denniske committed Oct 19, 2023
1 parent b5e6a88 commit 763238e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions app/App2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ class AoeDataService implements ITranslationService {
getString(category: keyof IStrings, id: number) {
return getInternalString(category, id);
}
getAllStrings(category: keyof IStrings) {
return getAllInternalStrings(category);
}
getLanguage(): string {
return getInternalLanguage();
}
Expand Down
6 changes: 0 additions & 6 deletions data/src/lib/aoe-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export interface ITranslationService {
getUiTranslation(str: string): string;
getAoeString(str: string): string;
getString(category: keyof IStrings, id: number): string | undefined;
getAllStrings(category: keyof IStrings): IStringItem[];
getLanguage(): string;
}

Expand All @@ -24,11 +23,6 @@ export function getString(category: keyof IStrings, id: number) {
return aoeDataService.getString(category, id);
}

export function getAllStrings(category: keyof IStrings) {
const aoeDataService = getService(SERVICE_NAME.TRANSLATION_SERVICE) as ITranslationService;
return aoeDataService.getAllStrings(category);
}

export function getLanguage() {
const aoeDataService = getService(SERVICE_NAME.TRANSLATION_SERVICE) as ITranslationService;
// console.log('aoeDataService', aoeDataService);
Expand Down
4 changes: 0 additions & 4 deletions data/src/lib/di.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ class DummyTranslationService implements ITranslationService {
getString(category: keyof IStrings, id: number): string | undefined {
return '???';
}

getAllStrings(category: keyof IStrings): IStringItem[] {
return [];
}
}

registerService(SERVICE_NAME.TRANSLATION_SERVICE, new DummyTranslationService(), true);

0 comments on commit 763238e

Please sign in to comment.