Skip to content

Commit

Permalink
revert to eng only updates
Browse files Browse the repository at this point in the history
  • Loading branch information
NoodleOfDeath committed May 24, 2024
1 parent 9487392 commit f3f7a59
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions src/mobile/src/components/post/summary/Summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,6 @@ export function Summary({

// update when brought into view
useFocusEffect(React.useCallback(() => {
if (summaryTranslations?.[summary.id]) {
setTranslations(summaryTranslations[summary.id]);
translateToggleRef.current?.setTranslations(summaryTranslations[summary.id]);
} else
if (getLocale() !== 'en') {
translateToggleRef.current?.translate();
}
setIsRead(!forceUnread && (summary.id in { ...readSummaries }));
setIsBookmarked(summary.id in { ...bookmarkedSummaries });
setIsCompact(compactSummaries);
Expand Down
2 changes: 1 addition & 1 deletion src/mobile/src/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {

export * from '~/core/locales';

export const strings = new LocalizedStrings(LOCALE_MAP);
export const strings = new LocalizedStrings({ en: LOCALE_MAP.en });

export const getLocale = getLocaleBase(strings.getInterfaceLanguage()) as () => SupportedLocale;
export const getFnsLocale = getFnsLocaleBase(strings.getInterfaceLanguage());

0 comments on commit f3f7a59

Please sign in to comment.