Skip to content

Commit

Permalink
fix: add missing translation text
Browse files Browse the repository at this point in the history
  • Loading branch information
prinsss committed Apr 13, 2024
1 parent 8d95445 commit d2f67a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/table/table-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function TableView<T>({ title, recordsSignal, isTweet }: TableViewProps<T
{/* Empty view. */}
{table.getRowModel().rows.length > 0 ? null : (
<div class="flex items-center justify-center h-52 w-full">
<p class="text-base-content text-opacity-50">No data available.</p>
<p class="text-base-content text-opacity-50">{t('No data available.')}</p>
</div>
)}
</main>
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"Captured:": "Captured:",
"Rows per page:": "Rows per page:",
"A - B of N items": "{{from}} - {{to}} of {{total}} items",
"No data available.": "No data available.",
"Clear": "Clear",
"Export Media": "Export Media",
"Export Data": "Export Data",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/zh-Hans/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"Captured:": "已捕获:",
"Rows per page:": "每页显示行数:",
"A - B of N items": "第 {{from}} - {{to}} 项,共 {{total}} 项",
"No data available.": "没有数据。",
"Clear": "清除",
"Export Media": "导出媒体文件",
"Export Data": "导出数据",
Expand Down

0 comments on commit d2f67a8

Please sign in to comment.