Skip to content

Commit

Permalink
fix: remove third language (malay)
Browse files Browse the repository at this point in the history
  • Loading branch information
satnaing committed Nov 11, 2024
1 parent 2389103 commit 956884b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 70 deletions.
2 changes: 1 addition & 1 deletion src/components/language-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createContext, useContext, useState } from 'react'
import { IntlProvider } from 'use-intl'
import translations from '../translations'

export type Language = 'en' | 'zh' | 'ms'
export type Language = 'en' | 'zh'

type LanguageProviderProps = {
children: React.ReactNode
Expand Down
1 change: 0 additions & 1 deletion src/components/language-switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export default function LanguageSwitch() {
const languageText = new Map<string, string>([
['en', 'English'],
['zh', '简体中文'],
['ms', 'Malay'],
])

const renderDropdownItem = () => {
Expand Down
3 changes: 1 addition & 2 deletions src/translations/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as en from './en.json'
import * as zh from './zh.json'
import * as ms from './ms.json'

export default { en, zh, ms }
export default { en, zh }
66 changes: 0 additions & 66 deletions src/translations/ms.json

This file was deleted.

0 comments on commit 956884b

Please sign in to comment.