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

Add format-all with prettier script #51

Merged
merged 4 commits into from
Dec 28, 2021

Conversation

ladytrekker
Copy link
Contributor

@ladytrekker ladytrekker commented Dec 19, 2021

Description

I saw that some files are not formatted yet with the bare VSCode formatting settings mentioned here: https://github.com/KlimaDAO/klimadao#requirements

Additionally, for people not using VSCode their code would probably be not formatted out-of-the-box when saving a file.

As it is recommended to run prettier --write on all files (see this PR comment here) I added a script on the root level which does exactly that.
I also ran the script once and added all updated files.
Please take a closer look and let me know if this implementation can stay like that and I did not miss anything.

If this script can stay like that it would make sense to add a default PR-template in which future devs are reminded to run this script once before opening a PR.

Update

I rebased with staging again and saw that you added exactly that 2 days ago. 🦐
=> running the script currently has no effect anymore, because now all files are already formatted correctly

Still, I think that adding a lint and format script on the root level for future PRs and mentioned this in a PR template would make sense. I left the script in the package.json and updated the README.

Feel free to close this PR.

@vercel
Copy link

vercel bot commented Dec 19, 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-app – ./

🔍 Inspect: https://vercel.com/klimadao/klimadao-app/9HYwsMuHVE1DN6HhbfRMrdpQRiVd
✅ Preview: https://klimadao-app-git-fork-ladytrekker-format-with-prettier-klimadao.vercel.app

[Deployment for e454b51 canceled]

klimadao-site – ./

🔍 Inspect: https://vercel.com/klimadao/klimadao-site/Ex8Do8NTzNrqhLs2nq9r4Tv6fPt6
✅ Preview: https://klimadao-site-git-fork-ladytrekker-format-with-09fc12-klimadao.vercel.app

[Deployment for e454b51 canceled]

@vercel vercel bot temporarily deployed to Preview – klimadao-site December 19, 2021 17:31 Inactive
@vercel vercel bot temporarily deployed to Preview – klimadao-app December 19, 2021 17:31 Inactive
@vercel vercel bot temporarily deployed to Preview – klimadao-app December 19, 2021 17:33 Inactive
@vercel vercel bot temporarily deployed to Preview – klimadao-site December 19, 2021 17:33 Inactive
@ladytrekker ladytrekker changed the title Add format code with prettier script Add format-all with prettier script Dec 20, 2021
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.

Why is the package-lock changed? Did prettier do that?

@vercel vercel bot temporarily deployed to Preview – klimadao-app December 20, 2021 23:11 Inactive
@vercel vercel bot temporarily deployed to Preview – klimadao-site December 20, 2021 23:11 Inactive
@ladytrekker
Copy link
Contributor Author

Why is the package-lock changed? Did prettier do that?

I think with installing - deinstalling it happened.

I rebased again => no update on package-lock no more

@Atmosfearful Atmosfearful merged commit 88d36a9 into KlimaDAO:staging Dec 28, 2021
@ladytrekker ladytrekker deleted the format-with-prettier branch January 2, 2022 18:49
Atmosfearful pushed a commit that referenced this pull request Jan 3, 2022
* chore: add prettier

* style: add format script to root

* build: remove prettier from root

* docs: add script to README
biwano pushed a commit to biwano/klimadao that referenced this pull request Jan 4, 2022
* chore: add prettier

* style: add format script to root

* build: remove prettier from root

* docs: add script to README
Atmosfearful added a commit that referenced this pull request Jan 10, 2022
* 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

* 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

* mobile menu

* console error

* prettier

* commented version of original idea for review

* add "dont remind me" button for checkURLBanner

* PR comments pt1

* merge staging

* prettier

* theme styles added

* formatting

Co-authored-by: Atmosfearful <atmosfearful@protonmail.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: Atmosfearful <88635679+Atmosfearful@users.noreply.github.com>
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>
kaxline pushed a commit that referenced this pull request Jan 14, 2022
* 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

* 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

* mobile menu

* console error

* prettier

* commented version of original idea for review

* add "dont remind me" button for checkURLBanner

* PR comments pt1

* merge staging

* prettier

* theme styles added

* formatting

Co-authored-by: Atmosfearful <atmosfearful@protonmail.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: Atmosfearful <88635679+Atmosfearful@users.noreply.github.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

* 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
* 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

* 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

* mobile menu

* console error

* prettier

* commented version of original idea for review

* add "dont remind me" button for checkURLBanner

* PR comments pt1

* merge staging

* prettier

* theme styles added

* formatting

Co-authored-by: Atmosfearful <atmosfearful@protonmail.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: Atmosfearful <88635679+Atmosfearful@users.noreply.github.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
Prevent divide by zero error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants