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

Translation framework #43

Merged
merged 18 commits into from
Dec 28, 2021
Merged

Translation framework #43

merged 18 commits into from
Dec 28, 2021

Conversation

biwano
Copy link
Collaborator

@biwano biwano commented Dec 10, 2021

Integrates a translation framework (linguijs)
Notes:

  • The framework is only integrated in the app, not the site.
  • This is a very minimal effort (It does not use nextjs internationalization standards, It does not autodetect the user language, It does not save the user preference, The menu to choose the language is ugly)

@vercel
Copy link

vercel bot commented Dec 10, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

klimadao-site – ./

🔍 Inspect: https://vercel.com/klimadao/klimadao-site/F8mM8qk4YTpTyBhP14NaH7fxu8gv
✅ Preview: https://klimadao-site-git-fork-biwano-staging-klimadao.vercel.app

[Deployment for a5af52c canceled]

klimadao-app – ./

🔍 Inspect: https://vercel.com/klimadao/klimadao-app/5nJbjwNPSDbcVd8smTTrvUdJEeDS
✅ Preview: https://klimadao-app-git-fork-biwano-staging-klimadao.vercel.app

[Deployment for a5af52c canceled]

@0xAurelius
Copy link
Contributor

Resolves #29

@Atmosfearful Atmosfearful marked this pull request as draft December 11, 2021 06:57
Copy link
Collaborator

@Atmosfearful Atmosfearful left a 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:

  1. (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.

  1. 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();
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Copy link
Collaborator

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",
Copy link
Collaborator

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

Copy link
Collaborator Author

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",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why test?

Copy link
Collaborator Author

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"
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

@@ -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>
Copy link
Collaborator

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}"

Copy link
Collaborator

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

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.

Copy link
Collaborator Author

@biwano biwano Dec 19, 2021

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",
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

@biwano
Copy link
Collaborator Author

biwano commented Dec 19, 2021

I found a problem with the t component when translating the stake page. When trying this like the documentation says:
t({ id: "msg.refresh", message: "Refresh inbox" })
The compiler complains about the signature of t.

I had to use a mix of:

  • defineMessage (so lingui:extract picks up the translation)
  • i18n (to do the actual translation)

@vercel vercel bot temporarily deployed to Preview – klimadao-app December 19, 2021 14:42 Inactive
@vercel vercel bot temporarily deployed to Preview – klimadao-site December 19, 2021 14:42 Inactive
@Atmosfearful Atmosfearful marked this pull request as ready for review December 20, 2021 17:55
@Atmosfearful
Copy link
Collaborator

As mentioned in my DM please upgrade the package-lock and then this can merge to the i18n branch.

@vercel vercel bot temporarily deployed to Preview – klimadao-site December 21, 2021 06:39 Inactive
@vercel vercel bot temporarily deployed to Preview – klimadao-app December 21, 2021 06:39 Inactive
@biwano biwano requested a review from Atmosfearful December 21, 2021 06:39
Copy link
Collaborator

@Atmosfearful Atmosfearful left a 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! 🚢 🚢

@Atmosfearful Atmosfearful merged commit 80779ba into KlimaDAO:i18n Dec 28, 2021
@Atmosfearful
Copy link
Collaborator

Reminder: We will need to do regular rebases of staging to the i18n branch to keep things up to date

biwano added a commit to biwano/klimadao that referenced this pull request Dec 31, 2021
* 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>
biwano added a commit to biwano/klimadao that referenced this pull request Jan 2, 2022
* 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>
Atmosfearful added a commit that referenced this pull request Jan 3, 2022
* 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>
biwano added a commit to biwano/klimadao that referenced this pull request Jan 4, 2022
* 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>
biwano added a commit to biwano/klimadao that referenced this pull request Jan 4, 2022
* 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>
biwano added a commit to biwano/klimadao that referenced this pull request Jan 4, 2022
* 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>
Atmosfearful added a commit that referenced this pull request Jan 10, 2022
* 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>
Atmosfearful added a commit that referenced this pull request Jan 13, 2022
* 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>
Atmosfearful added a commit that referenced this pull request Jan 15, 2022
* 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>
Atmosfearful added a commit that referenced this pull request Jan 15, 2022
* 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>
Atmosfearful added a commit that referenced this pull request Jan 15, 2022
* 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>
ArchimedesCrypto pushed a commit that referenced this pull request Jan 20, 2022
* 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>
biwano pushed a commit that referenced this pull request Feb 18, 2025
* 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>
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.

4 participants