mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
web: localize search results count
This commit is contained in:
@@ -62,7 +62,7 @@ function Search(props: NotesProps) {
|
|||||||
groupingKey={"search"}
|
groupingKey={"search"}
|
||||||
isSearching={true}
|
isSearching={true}
|
||||||
refresh={refresh}
|
refresh={refresh}
|
||||||
title={`${items.length} results`}
|
title={strings.results(items.length)}
|
||||||
isFocused={false}
|
isFocused={false}
|
||||||
index={0}
|
index={0}
|
||||||
onSelectGroup={() => {}}
|
onSelectGroup={() => {}}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -404,6 +404,11 @@ export const strings = {
|
|||||||
loggingOutDesc: () => t`Please wait while we log you out.`,
|
loggingOutDesc: () => t`Please wait while we log you out.`,
|
||||||
by: () => t`By`,
|
by: () => t`By`,
|
||||||
noResultsForSearch: (query: string) => t`No results found for "${query}"`,
|
noResultsForSearch: (query: string) => t`No results found for "${query}"`,
|
||||||
|
results: (count: number) =>
|
||||||
|
plural(count, {
|
||||||
|
one: "1 result",
|
||||||
|
other: `# results`
|
||||||
|
}),
|
||||||
noThemesFound: () => t`No themes found`,
|
noThemesFound: () => t`No themes found`,
|
||||||
errorLoadingThemes: () => t`Error loading themes`,
|
errorLoadingThemes: () => t`Error loading themes`,
|
||||||
loadingThemes: () => t`Loading themes...`,
|
loadingThemes: () => t`Loading themes...`,
|
||||||
|
|||||||
Reference in New Issue
Block a user