mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): add missing translation strings
This commit is contained in:
@@ -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 };
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user