* Display SurveyMonkey survey via FAB - add Floating Action Button lib: react-tiny-fab - enable Internal Page Survey with ?flags=ips - update snapshots * Add location to state - update snapshots * Fix build error - remove react-tiny-fab - remove location state - create custom FAB component - remove feature flag - update snapshots * Add SurveyFab snapshot test * Remove embedded survey page - add intl * Remove conditional render logic on SurveyFab * Remove cypress test around starting map via URL - increase component code coverage to 83% |
||
---|---|---|
.. | ||
createSpanishJson.js | ||
diffEnEs.js | ||
en.json | ||
es.json | ||
esNoBrackets.json | ||
README.md | ||
testIntlExtraction.js |
Translating content to Spanish
Keys without curly brackets
Navigate to the es.json
file. This JSON file will have a key and a value in English. The translation team will replace all English values with Spanish values.
{
"about.page.sub.header.1.text.1" : "On January 27, 2021, President Biden directed the Council on Environmental Quality (CEQ) to create a climate and economic justice screening tool. The purpose of the tool is to help Federal agencies identify disadvantaged communities and provide socioeconomic, environmental, and climate information and data to inform decisions that may affect these communities. The tool identifies disadvantaged communities as communities of focus through publicly available, nationally consistent, high-quality data.",
}
Keys with curly brackets
There are some keys with curly brackets, for example, es.json
:
{
"download.draft.ptag.1" : "{downloadDraft} of communities of focus and datasets used. Last updated: {dateUpdated}.",
}
In this case, this first step is find out what the English sentence is:
The reason the {downloadDraft}
and {dateUpdated}
are in curly brackets is because something special happens with that text. In the former it's a link in the latter it's a variable that being used in multiple places.
Let's assume that this sentence translates to Spanish as
Descargue la lista preliminar de comunidades de interés y conjuntos de datos utilizados. Última actualización: 01/10/21.
And let's say we want Descargue la lista preliminar
to be a link. Then, we would place the following as the translated content:
{
"download.draft.ptag.1_english" : "{downloadDraft} of communities of focus and datasets used. Last updated: {dateUpdated}.",
"download.draft.ptag.1" : "`{downloadDraftEs} de comunidades de interés y conjuntos de datos utilizados. Última actualización: {dateUpdatedEs}.`",
}
Where downloadDraftEs
= Descargue la lista preliminar and dateUpdatedEs
= 01/10/21
TBD: How should these curly bracket variables be communicated to the dev team?