-
Notifications
You must be signed in to change notification settings - Fork 74
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
Translation framework #43
Conversation
This pull request is being automatically deployed with Vercel (learn more). klimadao-site – ./🔍 Inspect: https://vercel.com/klimadao/klimadao-site/F8mM8qk4YTpTyBhP14NaH7fxu8gv [Deployment for a5af52c canceled] klimadao-app – ./🔍 Inspect: https://vercel.com/klimadao/klimadao-app/5nJbjwNPSDbcVd8smTTrvUdJEeDS [Deployment for a5af52c canceled] |
Resolves #29 |
…lication deploys properly on Vercel
1fa31b2
to
2161c2d
Compare
62d702d
to
7f45034
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm super stoked for this, insanely helpful. I added a few comments and questions, and there are two more issues before I can merge to the i18n branch:
- (read my change requests below before doing this) It looks like you generated some package-locks. There should only be one, at the root, which is a feature of
npm workspaces
. Try deleting the extras, removing the new dependencies from package.json, and reinstalling using the workspace command, from the root klimadao folder:
npm install --save-dev -w app -w site @lingui/macro @lingui/cli
and
npm install -w app -w site @lingui/react
That should install them, symlink them to the workspaces (so each is only installed once for all packages 🔥 💯 ), and add them to the root package-lock.json.
- Please rebase on the latest staging and reinstall deps, then run
pretter --write
to format your code. With the new setup, builds will fail if not formatted.
Thank you!!
return <Component {...pageProps} />; | ||
useEffect(() => { | ||
// Activate the default locale on page load | ||
init(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the fact that this only runs after mount cause a flash of un-translated text?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so. I am a react/nextjs noob so I do not really know the lifecycles etc... Let me know if there is a better place to put init stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK we can fix this in a follow-up PR :)
app/package.json
Outdated
"@lingui/cli": "3.0.3", | ||
"@lingui/macro": "3.0.3", | ||
"@lingui/react": "3.0.3", | ||
"typescript": "4.0.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typescript
and @lingui/cli
should be dev-dependencies
I believe @lingui/macro
should be as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like to compile translations as part of the build process. But i am okay with commiting js files too.
"build": "next build", | ||
"start": "next start", | ||
"export": "next export", | ||
"lint": "next lint" | ||
"lint": "next lint", | ||
"lingui:extract": "NODE_ENV=test lingui extract", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why test
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seem to be a bug with lingui extract
when running it in production mode in particular setups. This is a workaround
lingui/js-lingui#433
|
||
#: components/views/Home/index.tsx:235 | ||
msgid "header.connectedto" | ||
msgstr "You are connected to" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could probably answer this question by reading the docs but,
does this mean in order to change a string, we need to change it in the component, but also here in the messages file?
Or is this auto-generated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to change it only in the messages.po
files. The strings in the component are only default values.
app/components/views/Home/index.tsx
Outdated
@@ -268,7 +274,7 @@ export const Home: FC = () => { | |||
<nav className={styles.nav}> | |||
{chainId === 80001 && ( | |||
<p className={styles.testnet_warning}> | |||
⚠️You are connected to <strong>testnet</strong> | |||
⚠️<Trans id="header.connectedto">You are connected to </Trans><strong>testnet</strong> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably fine for now but it raised a question for me:
Generally speaking, is it better to use interpolation for strings like these?
What does that look like in lingui? in other libs I used its something like:
"header.connectedto": "You are connected to {networkName}"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the rationale being, in another language the noun testnet
might not appear at the end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we can't use interpolation in translations I would say this should be a deal-breaker for lingui.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interpolation is definetly better and possible with lingui. I was just being lazy. But I am not sure with the <stong>
tag in between...
app/package.json
Outdated
}, | ||
"dependencies": { | ||
"@babel/core": "^7.16.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure we need babel, doesn't lingui and nextjs have it as a subdependency already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I was following installation instructions blindly.
I found a problem with the t component when translating the stake page. When trying this like the documentation says: I had to use a mix of:
|
As mentioned in my DM please upgrade the package-lock and then this can merge to the i18n branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, let's merge to the i18n branch, work out the remaining issues/questions, and hopefully get this to production ASAP! 🚢 🚢
Reminder: We will need to do regular rebases of staging to the i18n branch to keep things up to date |
* update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain>
* update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain>
* update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain>
* update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain>
* update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain>
* update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain>
* update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain>
* update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * add prettier and enhance eslint * prettier & eslint fixes * run prettier when building apps * links on landing page according to specs (#47) * links on landing page according to specs * fixed styling on Github and Twitter icons * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Increase rounding precision of next rebase value (#53) * Add Check URL banner (#50) * feat: add component CheckURLBanner * feat: render banner on initial load * upgrade to latest version of typescript * Commited package-lock.json * add redirect for /wrap hashroute * Add format-all with prettier script (#51) * chore: add prettier * style: add format script to root * build: remove prettier from root * docs: add script to README * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * use React state for checkURLBanner * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * Fixed time-delta types not being recognized * site module: Added locales menu * site: Use nextjs router for localization * Fixed errors on production builds * bond trans_id tags added * redeem trans_id tags added * pklima trans_id tags added * pklima ClaimExceedModal trans_id tags added * Bond/AdvancedSettings trans_id tags added * Wrap trans_id tags added * social media links open in new tab (#57) * social media links open in new tab * prettier * chore: add pr template (#60) * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * site/Home trans_id tags added * Increase rounding precision of next rebase value (#53) * Add Check URL banner (#50) * feat: add component CheckURLBanner * feat: render banner on initial load * upgrade to latest version of typescript * add redirect for /wrap hashroute * Add format-all with prettier script (#51) * chore: add prettier * style: add format script to root * build: remove prettier from root * docs: add script to README * Integrated time-delta to have localized prettifiedSeconds * use React state for checkURLBanner * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * Fixed time-delta types not being recognized * site module: Added locales menu * site: Use nextjs router for localization * Fixed errors on production builds * i18n minimal * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Commited package-lock.json * upgrade to latest version of typescript * Integrated time-delta to have localized prettifiedSeconds * use React state for checkURLBanner * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * Fixed time-delta types not being recognized * site module: Added locales menu * site: Use nextjs router for localization * Fixed errors on production builds * Integrated time-delta to have localized prettifiedSeconds * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * site module: Added locales menu * site: Use nextjs router for localization * Prevented i18nProvider from remounting the child components * Merged sirthus/sirthus * Added pseudo localization * Complete tags in site/Home * Added tags to tour messages * Added app/ChooseBond tags * Added translation tags to app/pklima * Added tags to app/Bond * Added more tags to app/Bond * Hide language menu in production * Removed compiled locales from repository * Removed dependency towards time-delta * Fixes for failing build * Updated texts regarding dates * Fixed prettier issue in Bond/index.tsx * Fixed import style of loadTranslations in site * Prettier fix Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: Vienio99 <73585288+Vienio99@users.noreply.github.com> Co-authored-by: Marcus Aurelius <91024694+0xAurelius@users.noreply.github.com> Co-authored-by: ladytrekker <95881624+ladytrekker@users.noreply.github.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> Co-authored-by: sirthus <sirthus01@gmail.com>
* update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain>
* update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * add prettier and enhance eslint * prettier & eslint fixes * run prettier when building apps * links on landing page according to specs (#47) * links on landing page according to specs * fixed styling on Github and Twitter icons * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Increase rounding precision of next rebase value (#53) * Add Check URL banner (#50) * feat: add component CheckURLBanner * feat: render banner on initial load * upgrade to latest version of typescript * Commited package-lock.json * add redirect for /wrap hashroute * Add format-all with prettier script (#51) * chore: add prettier * style: add format script to root * build: remove prettier from root * docs: add script to README * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * use React state for checkURLBanner * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * Fixed time-delta types not being recognized * site module: Added locales menu * site: Use nextjs router for localization * Fixed errors on production builds * bond trans_id tags added * redeem trans_id tags added * pklima trans_id tags added * pklima ClaimExceedModal trans_id tags added * Bond/AdvancedSettings trans_id tags added * Wrap trans_id tags added * social media links open in new tab (#57) * social media links open in new tab * prettier * chore: add pr template (#60) * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * site/Home trans_id tags added * Increase rounding precision of next rebase value (#53) * Add Check URL banner (#50) * feat: add component CheckURLBanner * feat: render banner on initial load * upgrade to latest version of typescript * add redirect for /wrap hashroute * Add format-all with prettier script (#51) * chore: add prettier * style: add format script to root * build: remove prettier from root * docs: add script to README * Integrated time-delta to have localized prettifiedSeconds * use React state for checkURLBanner * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * Fixed time-delta types not being recognized * site module: Added locales menu * site: Use nextjs router for localization * Fixed errors on production builds * i18n minimal * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Commited package-lock.json * upgrade to latest version of typescript * Integrated time-delta to have localized prettifiedSeconds * use React state for checkURLBanner * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * Fixed time-delta types not being recognized * site module: Added locales menu * site: Use nextjs router for localization * Fixed errors on production builds * Integrated time-delta to have localized prettifiedSeconds * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * site module: Added locales menu * site: Use nextjs router for localization * Prevented i18nProvider from remounting the child components * Merged sirthus/sirthus * Added pseudo localization * Complete tags in site/Home * Added tags to tour messages * Added app/ChooseBond tags * Added translation tags to app/pklima * Added tags to app/Bond * Added more tags to app/Bond * Hide language menu in production * Removed compiled locales from repository * Removed dependency towards time-delta * Fixes for failing build * Updated texts regarding dates * Fixed prettier issue in Bond/index.tsx * Fixed import style of loadTranslations in site * Prettier fix Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: Vienio99 <73585288+Vienio99@users.noreply.github.com> Co-authored-by: Marcus Aurelius <91024694+0xAurelius@users.noreply.github.com> Co-authored-by: ladytrekker <95881624+ladytrekker@users.noreply.github.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> Co-authored-by: sirthus <sirthus01@gmail.com>
* Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * DRAFT: I18n (#59) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * add prettier and enhance eslint * prettier & eslint fixes * run prettier when building apps * links on landing page according to specs (#47) * links on landing page according to specs * fixed styling on Github and Twitter icons * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Increase rounding precision of next rebase value (#53) * Add Check URL banner (#50) * feat: add component CheckURLBanner * feat: render banner on initial load * upgrade to latest version of typescript * Commited package-lock.json * add redirect for /wrap hashroute * Add format-all with prettier script (#51) * chore: add prettier * style: add format script to root * build: remove prettier from root * docs: add script to README * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * use React state for checkURLBanner * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * Fixed time-delta types not being recognized * site module: Added locales menu * site: Use nextjs router for localization * Fixed errors on production builds * bond trans_id tags added * redeem trans_id tags added * pklima trans_id tags added * pklima ClaimExceedModal trans_id tags added * Bond/AdvancedSettings trans_id tags added * Wrap trans_id tags added * social media links open in new tab (#57) * social media links open in new tab * prettier * chore: add pr template (#60) * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * site/Home trans_id tags added * Increase rounding precision of next rebase value (#53) * Add Check URL banner (#50) * feat: add component CheckURLBanner * feat: render banner on initial load * upgrade to latest version of typescript * add redirect for /wrap hashroute * Add format-all with prettier script (#51) * chore: add prettier * style: add format script to root * build: remove prettier from root * docs: add script to README * Integrated time-delta to have localized prettifiedSeconds * use React state for checkURLBanner * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * Fixed time-delta types not being recognized * site module: Added locales menu * site: Use nextjs router for localization * Fixed errors on production builds * i18n minimal * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Commited package-lock.json * upgrade to latest version of typescript * Integrated time-delta to have localized prettifiedSeconds * use React state for checkURLBanner * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * Fixed time-delta types not being recognized * site module: Added locales menu * site: Use nextjs router for localization * Fixed errors on production builds * Integrated time-delta to have localized prettifiedSeconds * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * site module: Added locales menu * site: Use nextjs router for localization * Prevented i18nProvider from remounting the child components * Merged sirthus/sirthus * Added pseudo localization * Complete tags in site/Home * Added tags to tour messages * Added app/ChooseBond tags * Added translation tags to app/pklima * Added tags to app/Bond * Added more tags to app/Bond * Hide language menu in production * Removed compiled locales from repository * Removed dependency towards time-delta * Fixes for failing build * Updated texts regarding dates * Fixed prettier issue in Bond/index.tsx * Fixed import style of loadTranslations in site * Prettier fix Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: Vienio99 <73585288+Vienio99@users.noreply.github.com> Co-authored-by: Marcus Aurelius <91024694+0xAurelius@users.noreply.github.com> Co-authored-by: ladytrekker <95881624+ladytrekker@users.noreply.github.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> Co-authored-by: sirthus <sirthus01@gmail.com> * lingui:extract * extract lingui * add classnames lib to all workspaces * fix bond styles * add change language button to dapp * fix text align in french * fix emotion typography font sizes * add comment * cleanup: remove dead imports, add language button * remove empty props interface * fix menu placement * extract and clean translations * add extract-strings top-level helper * always run lingui --clean * add TODO comment reference to NODE_ENV hack * extract strings * add language switcher to site * trigger preview build * fix style import for bond view Co-authored-by: biwano <biwano@gmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> Co-authored-by: Vienio99 <73585288+Vienio99@users.noreply.github.com> Co-authored-by: Marcus Aurelius <91024694+0xAurelius@users.noreply.github.com> Co-authored-by: ladytrekker <95881624+ladytrekker@users.noreply.github.com> Co-authored-by: sirthus <sirthus01@gmail.com>
* Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * DRAFT: I18n (#59) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * add prettier and enhance eslint * prettier & eslint fixes * run prettier when building apps * links on landing page according to specs (#47) * links on landing page according to specs * fixed styling on Github and Twitter icons * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Increase rounding precision of next rebase value (#53) * Add Check URL banner (#50) * feat: add component CheckURLBanner * feat: render banner on initial load * upgrade to latest version of typescript * Commited package-lock.json * add redirect for /wrap hashroute * Add format-all with prettier script (#51) * chore: add prettier * style: add format script to root * build: remove prettier from root * docs: add script to README * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * use React state for checkURLBanner * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * Fixed time-delta types not being recognized * site module: Added locales menu * site: Use nextjs router for localization * Fixed errors on production builds * bond trans_id tags added * redeem trans_id tags added * pklima trans_id tags added * pklima ClaimExceedModal trans_id tags added * Bond/AdvancedSettings trans_id tags added * Wrap trans_id tags added * social media links open in new tab (#57) * social media links open in new tab * prettier * chore: add pr template (#60) * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * site/Home trans_id tags added * Increase rounding precision of next rebase value (#53) * Add Check URL banner (#50) * feat: add component CheckURLBanner * feat: render banner on initial load * upgrade to latest version of typescript * add redirect for /wrap hashroute * Add format-all with prettier script (#51) * chore: add prettier * style: add format script to root * build: remove prettier from root * docs: add script to README * Integrated time-delta to have localized prettifiedSeconds * use React state for checkURLBanner * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * Fixed time-delta types not being recognized * site module: Added locales menu * site: Use nextjs router for localization * Fixed errors on production builds * i18n minimal * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Commited package-lock.json * upgrade to latest version of typescript * Integrated time-delta to have localized prettifiedSeconds * use React state for checkURLBanner * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * Fixed time-delta types not being recognized * site module: Added locales menu * site: Use nextjs router for localization * Fixed errors on production builds * Integrated time-delta to have localized prettifiedSeconds * Translation framework (#43) * update package-lock files * update gitignores * i18n minimal * Fixed newline add end of file in config files * Trying to add a postinstall script to compile translations so the application deploys properly on Vercel * Nicer localization menu * Translated Home * Save selected language in LocalStorage * Translation: Stake page * Updated translation files * Optimized package.json dependencies * Rebased with klima/staging * Made files pretty. Updated .prettierignore * Commiting compiled translation files * Fixed merge of .prettierignore * Commited package-lock.json Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> * Integrated time-delta to have localized prettifiedSeconds * Basic translation framework to the site module * site module: Added locales menu * site: Use nextjs router for localization * Prevented i18nProvider from remounting the child components * Merged sirthus/sirthus * Added pseudo localization * Complete tags in site/Home * Added tags to tour messages * Added app/ChooseBond tags * Added translation tags to app/pklima * Added tags to app/Bond * Added more tags to app/Bond * Hide language menu in production * Removed compiled locales from repository * Removed dependency towards time-delta * Fixes for failing build * Updated texts regarding dates * Fixed prettier issue in Bond/index.tsx * Fixed import style of loadTranslations in site * Prettier fix Co-authored-by: Atmosfearful <atmosfearful@protonmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: Vienio99 <73585288+Vienio99@users.noreply.github.com> Co-authored-by: Marcus Aurelius <91024694+0xAurelius@users.noreply.github.com> Co-authored-by: ladytrekker <95881624+ladytrekker@users.noreply.github.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> Co-authored-by: sirthus <sirthus01@gmail.com> * lingui:extract * extract lingui * add classnames lib to all workspaces * fix bond styles * add change language button to dapp * fix text align in french * fix emotion typography font sizes * add comment * cleanup: remove dead imports, add language button * remove empty props interface * fix menu placement * extract and clean translations * add extract-strings top-level helper * always run lingui --clean * add TODO comment reference to NODE_ENV hack * extract strings * add language switcher to site * trigger preview build * fix style import for bond view Co-authored-by: biwano <biwano@gmail.com> Co-authored-by: Bruno Ilponse <bruno.ilponse@gmail.com> Co-authored-by: bilponse <bilponse@localhost.localdomain> Co-authored-by: Vienio99 <73585288+Vienio99@users.noreply.github.com> Co-authored-by: Marcus Aurelius <91024694+0xAurelius@users.noreply.github.com> Co-authored-by: ladytrekker <95881624+ladytrekker@users.noreply.github.com> Co-authored-by: sirthus <sirthus01@gmail.com>
* inverse-bonds: Added support for inverse bonds - Created Market, Terms, DepositOwnershipChange entities - Modified Deposit, DailyBond entities (in order to support both v1 and v2 bonds) - Separated BondHandlerV1 and BondHandlerV2 mappers * inverse-bonds: Renamed bond (Reverse -> Inverse) Co-authored-by: Sekula <sekuloskimilos@gmail.com>
Integrates a translation framework (linguijs)
Notes: