rn-emoji-keyboard icon indicating copy to clipboard operation
rn-emoji-keyboard copied to clipboard

Add Swedish translations

Open skaramicke opened this issue 1 year ago • 1 comments

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/rn-emoji-keyboard/src/index.tsx b/node_modules/rn-emoji-keyboard/src/index.tsx
index 1782c28..1e49cd4 100644
--- a/node_modules/rn-emoji-keyboard/src/index.tsx
+++ b/node_modules/rn-emoji-keyboard/src/index.tsx
@@ -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[]
 
diff --git a/node_modules/rn-emoji-keyboard/src/translation/se.ts b/node_modules/rn-emoji-keyboard/src/translation/se.ts
new file mode 100644
index 0000000..c410327
--- /dev/null
+++ b/node_modules/rn-emoji-keyboard/src/translation/se.ts
@@ -0,0 +1,16 @@
+import type { CategoryTranslation } from '../types'
+
+const en: 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 en

This issue body was partially generated by patch-package.

skaramicke avatar Jan 19 '24 08:01 skaramicke

Hi @skaramicke, Thanks for choosing the rn-emoji-keyboard for your project. I see that you added the translation. If you would like to contribute to the library you can create a pull request with your translation. We have even a separate section in our docs with step by step guide: https://thewidlarzgroup.github.io/rn-emoji-keyboard/docs/contributions/translations

Please let me know if you're interested. We will definitely add your translation if you prefer us to handle it. I'm also interested in hearing about your experience with using rn-emoji-keyboard. Your feedback would be very valuable.

DominikDanielewicz avatar Jan 31 '24 08:01 DominikDanielewicz