intl: fix localization

This commit is contained in:
Ammar Ahmed
2024-11-05 10:14:00 +05:00
parent 26d1de0620
commit fa54f7e7f7
4 changed files with 777 additions and 768 deletions

View File

@@ -333,12 +333,12 @@ export const settingsGroups: SettingSection[] = [
},
{
id: "clear-cache",
name: "Clear cache",
name: strings.clearCache(),
icon: "delete",
modifer: async () => {
presentDialog({
title: "Clear cache",
paragraph: "Are you sure you want to clear the cache?",
title: strings.clearCacheConfirm(),
paragraph: strings.clearCacheConfirmDesc(),
positiveText: "Clear",
positivePress: async () => {
filesystem.clearCache();
@@ -351,7 +351,7 @@ export const settingsGroups: SettingSection[] = [
});
},
description(current) {
return `Clear all cached attachments. Current cache size: ${
return `${strings.clearCacheDesc()}. Current cache size: ${
current as number
}`;
},

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1850,6 +1850,7 @@ For example:
properties: () => t`Properties`,
clickToPreview: () => t`Click to preview`,
clearCache: () => t`Clear cache`,
clearCacheDesc: () => t`Clear all cached attachments`,
clearCacheConfirm: () => t`Clear attachments cache?`,
clearCacheConfirmDesc:
() => t`Clearing attachments cache will perform the following actions: