-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Replace pluralize() with plural() or <Plural> to make some UI elements translatable. #2382
Conversation
tkusano
commented
Dec 30, 2023
- Replace all pluralize (defined by src/lib/strings/helpers.ts) with plural or Plural (defined by @lingui/macro) to make some UI elements translatable.
- Delete pluralize() and related test.
* Replace all pluralize (defined by src/lib/strings/helpers.ts) with plural or Plural (defined by @lingui/macro) to make some UI elements translatable. * Delete pluralize() and related test.
Going to review in a bit but going to drop in -- I tried this previously and hit some strange compile issues. Forget the details but need to be sure this is tested on all platforms |
I tested this patch only on my Ubuntu 22.04.3 environment by 'yarn web'. |
I setup Android dev environment and tested and got error. I found in lingui document that React Native doest not support |
- ios and andorid: import `@formtjs/intl-locale` and `@formatjs/intl-pluralrules` to polyfill `Intl.Locale` and `Intl.PluralRules` which are used in `plural()` and '<Plural />'. - update `plural` use in notification messages for better translation.
Updated this PR for Android and iOS platform (tested on Android/iOS emulators). |
* Move home-related files to view/com/home * Add HomeHeader in front of FeedTabBar * Move isDekstop check outside FeedsTabBar * Remove PWI logic from tabbar * Separate platform-specific layout from shared logic
* use `useOpenLink` hook for links in ALF * web only for `outline`
* fix: normalize relative date * chore: add comments * refactor: skip flooring normalized diff * refactor: let -> const * fix: get own copy of date to prevent mutating * refactor: rounding does the same trick
* show uiState errors in the box as well simplify copy update ui for only letters and numbers add ui validation to handle selection * simplify names * Fix accidental text-node render --------- Co-authored-by: Paul Frazee <[email protected]>
* Make dim color scheme dim * Tweaks * Overall tweaks * We have to go darker * Tweak saturation of blues in dim * Increase contrast on dark-dark mode * adjust dim --------- Co-authored-by: Eric Bailey <[email protected]> Co-authored-by: Paul Frazee <[email protected]> Co-authored-by: Hailey <[email protected]>
* adjust window size, cells batching period * rm batching period change
…" so the translator can adjust the translated count line to fit within the Drawer.
…trc.js to sync with bluesky-social:main
Hey I'm sorry this has sat for so long. I'm finally getting a look at it. |
Thank you again -- merged via #3882 |