fix(ui): add missing translation strings

This commit is contained in:
psychedelicious
2023-10-12 22:46:47 +11:00
parent 18164fc72a
commit 89db749d89
15 changed files with 60 additions and 20 deletions

View File

@@ -1,11 +1,12 @@
import { BoardId } from 'features/gallery/store/types';
import { useListAllBoardsQuery } from '../endpoints/boards';
import { t } from 'i18next';
export const useBoardName = (board_id: BoardId) => {
const { boardName } = useListAllBoardsQuery(undefined, {
selectFromResult: ({ data }) => {
const selectedBoard = data?.find((b) => b.board_id === board_id);
const boardName = selectedBoard?.board_name || 'Uncategorized';
const boardName = selectedBoard?.board_name || t('boards.uncategorized');
return { boardName };
},