Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,24 @@ describe('StandardDialog', () => {
expect(onClose).toHaveBeenCalledTimes(1)
})

it('names its close and back buttons in Mongolian', () => {
render(
<ThemeProvider theme={theme}>
<I18n lang="mn" dictRequire={() => ({})}>
<StandardDialog
open
title="Title"
onClose={vi.fn()}
onBack={vi.fn()}
/>
</I18n>
</ThemeProvider>
)

expect(screen.queryByRole('button', { name: 'Хаах' })).not.toBe(null)
expect(screen.queryByRole('button', { name: 'Буцах' })).not.toBe(null)
})

it('closes from the back button on full screen', () => {
const onClose = vi.fn()
setup({ onClose, fullScreen: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import en from './en.json'
import es from './es.json'
import fr from './fr.json'
import it from './it.json'
import mn from './mn.json'
import ru from './ru.json'
import vi from './vi.json'

export const locales = { de, en, es, fr, it, ru, vi }
export const locales = { de, en, es, fr, it, mn, ru, vi }
6 changes: 6 additions & 0 deletions packages/twake-mui/src/components/Dialogs/locales/mn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"Dialogs": {
"closeButton": "Хаах",
"backButton": "Буцах"
}
}
Loading