Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

iketw
Copy link
Contributor

@iketw iketw commented Nov 16, 2023

Cleaned up the language code

Combined Locales

Created a locales object to link each language code with its data.

Unified Locale Function

Made a getLocale function. It combines the base language data with any extra bits you add. This means you don't have to write the same code for each language.

Streamlined Language Functions

en, es, ja, tr etc now just use getLocale. It's cleaner and makes adding more languages easy. (Hopefully.) I would make them JSON files instead of separate ts files though. But I didn't want to overstep any boundaries.

Overall, I tried getting rid of repetitive if-else stuff.

Added Turkish Language

Created by @selcukemiravci and @Visual917

@iketw iketw requested a review from a team November 16, 2023 02:46
Copy link

changeset-bot bot commented Nov 16, 2023

🦋 Changeset detected

Latest commit: fe9fdb3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@thirdweb-dev/react-native Patch
@thirdweb-dev/react-native-compat Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@iketw
Copy link
Contributor Author

iketw commented Nov 16, 2023

@Visual917 thanks again. I added the translation for ConnectWallet and added tr to the locales object.

I tested this with my RN app and it works great.

Let me know if it looks good and I'll merge it :)

@iYonga
Copy link

iYonga commented Nov 16, 2023

@iketw Awesome! Thank you and sorry I missed a spot ;) Merge it :)

@jnsdls
Copy link
Member

jnsdls commented Jan 11, 2024

waiting for #1964 to merge -> will fix resulting conflicts -> merge

@jnsdls jnsdls added this pull request to the merge queue Jan 11, 2024
Merged via the queue into main with commit 517d9a8 Jan 11, 2024
@jnsdls jnsdls deleted the Visual917/main branch January 11, 2024 09:53
@github-actions github-actions bot mentioned this pull request Jan 11, 2024
jnsdls pushed a commit that referenced this pull request Jun 19, 2024
* Update SDKs for CDN cache resolution

* update stable packages
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

Successfully merging this pull request may close these issues.

3 participants