JiggyDevs / twikkl-app

Decentralized video sharing app with social services and more
MIT License
10 stars 2 forks source link

Localize app + add translations #3

Open firasrg opened 1 year ago

firasrg commented 1 year ago

We are looking to set up 5 common languages:

  1. English
  2. French
  3. Arabic
  4. Hindi
  5. Chinese

The app must be translated in english as default.

The expressions must be taken, initially from the design images (available under /docs folder)

jasonsrogers commented 1 year ago

Hi

This task peaked my interest

Will create a PR using react-i18next with the skeleton for translating to the language mentioned above.

jasonsrogers commented 1 year ago

For reference I've created this PR to manage translations

Vcky4 commented 1 year ago

please fix this error and push.

ERROR i18next::pluralResolver: Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling. ERROR TypeError: Cannot read property 'search' of undefined, js engine: hermes ERROR TypeError: Cannot read property 'search' of undefined, js engine: hermes at RootRouteNodeProvider (http://192.168.43.42:19000/index.bundle?platform=android&dev=true&hot=false:111464:23) at ContextNavigator (http://192.168.43.42:19000/index.bundle?platform=android&dev=true&hot=false:117090:24) at RNCSafeAreaProvider at SafeAreaProvider (http://192.168.43.42:19000/index.bundle?platform=android&dev=true&hot=false:105307:24) at RNGestureHandlerRootView at GestureHandlerRootView at GestureHandler at ExpoRoot (http://192.168.43.42:19000/index.bundle?platform=android&dev=true&hot=false:117077:24) at App at withDevTools(App) (http://192.168.43.42:19000/index.bundle?platform=android&dev=true&hot=false:145963:27) at ErrorToastContainer (http://192.168.43.42:19000/index.bundle?platform=android&dev=true&hot=false:145887:24) at ErrorOverlay at RCTView at View (http://192.168.43.42:19000/index.bundle?platform=android&dev=true&hot=false:48534:43) at RCTView at View (http://192.168.43.42:19000/index.bundle?platform=android&dev=true&hot=false:48534:43) at AppContainer (http://192.168.43.42:19000/index.bundle?platform=android&dev=true&hot=false:48411:36) at main(RootComponent) (http://192.168.43.42:19000/index.bundle?platform=android&dev=true&hot=false:84925:28)

image

jasonsrogers commented 1 year ago

@Vcky4 How can I reproduce this ⬆️

If I run from my fork, all works (of course it always runs on your own machine 🙃 )

If I checked out the https://github.com/JiggyDevs/twikkl-app/commits/master at commit 09a4a5faba6ae256b5e3921809fd65155dc4c6cd

and it worked too

Can you help me narrow it down ?

Vcky4 commented 1 year ago

Try running the current master on andriod, that's where I'm getting it from.

but its same for both andriod and iOS. Also I've run the application on three different machines with same results