mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-03 17:43:59 +03:00
feat: add i18n (translation/localization) (#16877)
* Translation module init * Add more i18n keys * fix: fix string wrong * refactor: use namespace translation file * chore: add more translation key * fix: fix some page name error * refactor: change Trans tag for t function * chore: fix some key not work * chore: fix SearchFilterDialog i18n key error Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> * chore: fix en i18n file filter missing some keys * chore: add some i18n keys * chore: add more i18n keys again * feat: add search page i18n * feat: add explore model i18n keys * Update web/src/components/menu/GeneralSettings.tsx Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> * Update web/src/components/menu/GeneralSettings.tsx Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> * Update web/src/components/menu/GeneralSettings.tsx Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> * feat: add more live i18n keys * feat: add more search setting i18n keys * fix: remove some comment * fix: fix some setting page url error * Update web/src/views/settings/SearchSettingsView.tsx Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> * fix: add system missing keys * fix: update password update i18n keys * chore: remove outdate translation.json file * fix: fix exploreSettings error * chore: add object setting i18n keys * Update web/src/views/recording/RecordingView.tsx Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> * Update web/public/locales/en/components/filter.json Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> * Update web/src/components/overlay/ExportDialog.tsx Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> * feat: add more i18n keys * fix: fix motionDetectionTuner html node * feat: add more page i18n keys * fix: cameraStream i18n keys error * feat: add Player i18n keys * feat: add more toast i18n keys * feat: change explore setting name * feat: add more document title i18n keys * feat: add more search i18n keys * fix: fix accessDenied i18n keys error * chore: add objectType i18n * chore: add inputWithTags i18n * chore: add SearchFilterDialog i18n * Update web/src/views/settings/ObjectSettingsView.tsx Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> * Update web/src/views/settings/ObjectSettingsView.tsx Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> * Update web/src/views/settings/ObjectSettingsView.tsx Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> * Update web/src/views/settings/ObjectSettingsView.tsx Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> * Update web/src/views/settings/ObjectSettingsView.tsx Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> * chore: add some missing i18n keys * chore: remove most import { t } from "i18next"; --------- Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
This commit is contained in:
co-authored by
Josh Hawkins
parent
db541abed4
commit
d34533981f
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"search": "Search",
|
||||
"savedSearches": "Saved Searches",
|
||||
"searchFor": "Search for {{inputValue}}",
|
||||
"button": {
|
||||
"clear": "Clear search",
|
||||
"save": "Save search",
|
||||
"delete": "Delete saved search",
|
||||
"filterInformation": "Filter information",
|
||||
"filterActive": "Filters active"
|
||||
},
|
||||
"trackedObjectId": "Tracked Object ID",
|
||||
"filter": {
|
||||
"label": {
|
||||
"cameras": "Cameras",
|
||||
"labels": "Labels",
|
||||
"zones": "Zones",
|
||||
"sub_labels": "Sub Labels",
|
||||
"search_type": "Search Type",
|
||||
"time_range": "Time Range",
|
||||
"before": "Before",
|
||||
"after": "After",
|
||||
"min_score": "Min Score",
|
||||
"max_score": "Max Score",
|
||||
"min_speed": "Min Speed",
|
||||
"max_speed": "Max Speed",
|
||||
"recognized_license_plate": "Recognized License Plate",
|
||||
"has_clip": "Has Clip",
|
||||
"has_snapshot": "Has Snapshot"
|
||||
},
|
||||
"searchType": {
|
||||
"thumbnail": "Thumbnail",
|
||||
"description": "Description"
|
||||
},
|
||||
"toast": {
|
||||
"error": {
|
||||
"beforeDateBeLaterAfter": "The 'before' date must be later than the 'after' date.",
|
||||
"afterDatebeEarlierBefore": "The 'after' date must be earlier than the 'before' date.",
|
||||
"minScoreMustBeLessOrEqualMaxScore": "The 'min_score' must be less than or equal to the 'max_score'.",
|
||||
"maxScoreMustBeGreaterOrEqualMinScore": "The 'max_score' must be greater than or equal to the 'min_score'.",
|
||||
"minSpeedMustBeLessOrEqualMaxSpeed": "The 'min_speed' must be less than or equal to the 'max_speed'.",
|
||||
"maxSpeedMustBeGreaterOrEqualMinSpeed": "The 'max_speed' must be greater than or equal to the 'min_speed'."
|
||||
}
|
||||
},
|
||||
"tips": {
|
||||
"title": "How to use text filters",
|
||||
"desc": "Filters help you narrow down your search results. Here's how to use them in the input field:",
|
||||
"desc.step": "<ul className=\"list-disc pl-5 text-sm text-primary-variant\"><li>Type a filter name followed by a colon (e.g., \"cameras:\").</li><li>Select a value from the suggestions or type your own.</li><li>Use multiple filters by adding them one after another with a space in between.</li><li>Date filters (before: and after:) use <em>{{DateFormat}}</em> format.</li><li>Time range filter uses <em>{{exampleTime}}</em> format.</li><li>Remove filters by clicking the 'x' next to them.</li></ul>",
|
||||
"desc.example": "Example: <code className=\"text-primary\">cameras:front_door label:person before:01012024 time_range:3:00PM-4:00PM </code>"
|
||||
},
|
||||
"header": {
|
||||
"currentFilterType": "Filter Values",
|
||||
"noFilters": "Filters",
|
||||
"activeFilters": "Active Filters"
|
||||
}
|
||||
},
|
||||
"similaritySearch": {
|
||||
"title": "Similarity Search",
|
||||
"active": "Similarity search active",
|
||||
"clear": "Clear similarity search"
|
||||
},
|
||||
"placeholder": {
|
||||
"search": "Search..."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user