i18n.test.ts 379 B

123456789101112
  1. import { describe, expect, it } from 'vitest'
  2. import { isKorean } from '..'
  3. describe('i18n', () => {
  4. it('isKorean should work', () => {
  5. expect(isKorean('한국어')).toBe(true)
  6. expect(isKorean('한국어 korean')).toBe(true)
  7. expect(isKorean('korean')).toBe(false)
  8. expect(isKorean('中文')).toBe(false)
  9. expect(isKorean('にほんご')).toBe(false)
  10. })
  11. })