Skip to content

Commit

Permalink
feat: add swedish translations (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikDanielewicz committed Mar 25, 2024
1 parent 4cbe3e2 commit 6a26789
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/docs/documentation/internationalization.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Due to the limited translation possibilities, we only provide a few pre-defined
- `no` - Norwegian 🇳🇴
- `ro` - Romanian 🇷🇴
- `np` - Nepali 🇳🇵
- `se` - Swedish 🇸🇪

First import lang and use it as `translation` prop.

Expand Down
3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ import tr from './translation/tr'
import no from './translation/no'
import ro from './translation/ro'
import np from './translation/np'
import se from './translation/se'
import EmojisData from './assets/emojis.json'
import type { EmojisByCategory } from './types'

export { EmojiKeyboard }
export { useRecentPicksPersistence }
export { en, pl, ko, it, fr, id, es, de, pt, ru, ua, vi, cs, ja, tr, no, ro, np }
export { en, pl, ko, it, fr, id, es, de, pt, ru, ua, vi, cs, ja, tr, no, ro, np, se }
export type { EmojisByCategory, EmojiType } from './types'
export const emojisByCategory = EmojisData as EmojisByCategory[]

Expand Down
17 changes: 17 additions & 0 deletions src/translation/se.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { CategoryTranslation } from '../types'

const se: CategoryTranslation = {
recently_used: 'Senast använda',
smileys_emotion: 'Smileys & Känslouttryck',
people_body: 'Människa & Kropp',
animals_nature: 'Djur & Natur',
food_drink: 'Mat & Dryck',
travel_places: 'Resa & Platser',
activities: 'Aktiviteter',
objects: 'Objekt',
symbols: 'Symboler',
flags: 'Flaggor',
search: 'Sök',
}

export default se

0 comments on commit 6a26789

Please sign in to comment.