Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Swedish translations #164

Open
skaramicke opened this issue Jan 19, 2024 · 1 comment
Open

Add Swedish translations #164

skaramicke opened this issue Jan 19, 2024 · 1 comment

Comments

@skaramicke
Copy link

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch rn-emoji-keyboard@1.6.0 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.

@DominikDanielewicz
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants