-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Init i18next * Remove unused file * Switch to next-i18next * Add configuration and translate cookie banner * Fix Next.js warning "API handler should not return a value, received object" * Translate footer and add eslint rule to avoid import mistake * Ensure SSR and CSR bundles provide consistent i18n config. See i18next/next-i18next#2259 for details * Remove unused page * Remove unused property * Add top-level translations for StartPage * No need for translations when redirecting * Add 404 translations * Simplify DropDown to remove unused classes * Fix formatting error in Header * Remove Footer tests since they 1) it wasn't worth adapting them to the new i18n structure, and 2) because they tested the content rather than cricital functionality * Combine footer and common translations into a single namespace * Fix formatting issue * Add basic i18n to remaining pages * Use markdown to simplify i18n for dataset definitions * Style Markdown content according to the theme, with the option to override components * Use markdown for `body` field of DataDescriptions * Simplify date formatting * Prevent styled-components from rendering invalid HTML props * Remove unused components * Add translations for common components * Fix layout issue * Begin adding municipality translations * Add translations for municipality numbers * Allow ScorecardSections to use consistent formattig even with markdown content * Add municipality ScoreCard translations * Use HTML details element to make ScorecardSection more accessible and easier to use * Styling tweaks * Add missing key attribute * Fix React hydration error caused by missing <thead> element * Add solutions translations * Improve styles for Markdown * Replace JSX with Markdown formatting * Use markdown formatting instead of JS override * Translate utsläppsberakningar and use Markdown for simplified formatting * Translate partierna, and update next/image props * Translate Källor och Metod * Improve grid styling on about page * Translate about page * Improve spacing * Clarify dataset task ideas * Translate sitemap * Update tests to use mocked i18n and test against expected keys rather than values * Begin translating datasets * Translate the easy parts of dataset definitions * Clarify naming * Replace deprecated method String#substr with String#slice * Refactor to prepare for translated dataDescriptions * Add translations for datasets * WIP: hack around broken SSR translations * Cleanup SSR translations * Separate hardcoded dataset keys from the UI labels, to allow translations * Update tests to reflect fully translated datasets * Reduce margin-top for FactSection * Fix translation error * Fit images in container width * Fix modal positioning. Also improve UX by closing on backdrop click. Long term our custom Modal should be replaced with a standard Modal solution. * Ensure special data for climate plans and procurements renders correctly. Also improve TypeScript types to prevent this error in the future. * Fix type error * Revert spacing change for CementClarification
- Loading branch information
1 parent
2e6fef2
commit e85f934
Showing
63 changed files
with
2,696 additions
and
2,658 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
__tests__/components/Footer/FooterNewsletterSubscribe.test.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.