-
-
Notifications
You must be signed in to change notification settings - Fork 137
Description
Extract translation strings for the bill detail page. This does not include translations for testimony or bill content.
page: https://github.com/codeforboston/maple/blob/main/pages/bills/[court]/[billId].tsx
component: https://github.com/codeforboston/maple/blob/main/components/bill/BillDetails.tsx
Move user-visible text from this section into json files in the public/locales/en folder
in the components, use the next-i18next 'useTranslation' hook to connect the text from the json files
you'll decide how to group and name your text in a way that makes sense for your section
by default, make separate json files following the structure of the project pages/folders, but feel free to diverge from that
make sure to get titles, headers, buttons, labels, and alt text
put common words, labels, etc in the common.json file
some pages have already been extracted more or less into files next to or near the component files, usually with the same file name with 'content' on the end. That text needs to be moved as above, and it's up to you what to do with the content file.