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

feat: add I18n #28

Merged
merged 13 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ yarn-error.log*
CHANGELOG.md

pnpm-lock.yaml

dashboard
32 changes: 32 additions & 0 deletions messages/en/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"components": {
"summary": {
"title": "page"
},
"edito": {
"link": "See more"
},
"shareLink": {
"blank": "new tab",
"twitter": "Twitter",
"linkedin": "Linkedin",
"website": "Website",
"email": "Email"
},
"chart": {
"loading": "Loading data.."
},
"calculator": {
"intro": "Here are the impacts of the salmon industry around the world since you opened this web page.",
"seconds": "seconds",
"second": "second"
},
"join": {
"title": "Be the change.",
"intro": "There are alternatives to salmon in our way of eating, selling, and producing.",
"content": "France, located in the top 3 of the largest consumers of salmon in the world, bears a particular responsibility in guiding practices.",
"act": "To reverse the trend and stop the disaster, urgent action is needed. We have levers for action!",
"link": "We act"
}
}
}
21 changes: 21 additions & 0 deletions messages/en/layout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"layout": {
"top": "Back to top",
"nav": {
"title": "main",
"story": "Story",
"dashboard": "Dashboard",
"act": "To act",
"about": "About"
},
"footer": {
"allRight": "All rights reserved",
"and": "and"
}
},
"siteConfig": {
"title": "Pinkbombs",
"description": "Analyzing the impact of Salmon on the Environment, Ecosystem, Health and Communities.",
"url": "https://pinkbombs-app.vercel.app"
}
}
5 changes: 5 additions & 0 deletions messages/en/pages/about.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"about": {
"title": ""
}
}
30 changes: 30 additions & 0 deletions messages/en/pages/act.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"act": {
"meta": {
"title": "To act"
},
"title": "Good news: defusing Pinkbombs is just a click away",
"company": {
"title": "I call on responsible companies",
"content": "by sharing a pre-written information post that identifies them on Linkedin.",
"link": "Post on Linkedin",
"target": "#"
},
"territory": {
"title": "I say no to the salmon factory project on my territory",
"content": "The onshore salmon factory project called “Pure Salmon”, an initiative of the Singaporean investment fund 8F Asset Management, is under discussion near Bordeaux. Thanks to petitions signed by citizens, it was notably rejected in Pas-de-Calais and Brittany. Let's go on !",
"link": "Sign the petition",
"target": "#"
},
"seastemik": {
"title": "I support Seastemik",
"content": "Seastemik is an association created in 2023 with the objective of accelerating our transition to a healthy ocean.<br />To mobilize on the ground, it works to raise community awareness, accessibility of information and proposal of solutions.",
"link": "Contribute on HelloAsso",
"target": "#"
},
"eat": {
"title": "I leave the salmon off my plate",
"content": "Ready to set out to leave salmon in the oceans and rivers? “Together, we are an immense force”.<br />What objective seems achievable to you? Leave it to us in our intention box to help the community grow!"
}
}
}
139 changes: 139 additions & 0 deletions messages/en/pages/dashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
{
"dashboard": {
"meta": {
"title": "Dashboard"
},
"title": "The numbers behind the story",
"sections": {
"intro": {
"title": "Introduction",
"blocks": {
"salmon-collapse": {
"title": "Wild Altantic salmon collapse",
"content": "<p>The Atlantic salmon was added to the IUCN Red List of Threatened Species in December 2023.</p><p>This is largely due to overfishing, habitat degradation, particularly caused by dams blocking migratory routes, as well as climate change altering their environments, impacting their growth and survival rates.</p>"
},
"hyper-growth": {
"title": "Hyper-growth in salmon farming",
"content": "<p>Salmon production has experienced unprecedented growth.</p><p>Nearly nonexistent 30 years ago, it surged to three million tons of salmon in 2021, equivalent to the farming and slaughtering of one billion salmon.</p>"
},
"top-10": {
"title": "Main countries producing farmed salmon",
"content": "<p>Salmon require cold waters to grow, and thus production is concentrated in a few countries located far to the North or far to the South. Today, four countries alone account for 90% of the world's salmon production.</p>",
"subblock": {
"title": "Salmon farming evolution by country"
}
},
"intro-consumption": {
"title": "Salmon Consumption",
"content": "<p>The United States is the largest consumer of salmon, followed by Japan and Russia. European countries are also significant consumers of salmon, with France leading the pack with a high consumption rate of 4.4kg per person per year.</p>"
}
}
},
"company": {
"title": "Entreprises",
"blocks": {
"top-comp": {
"title": "Main producers of open-net salmon",
"content": "<p>Small artisanal salmon farms have given way to industrial aquaculture.</p><p>In a few decades, the market has become dominated by a handful of multinational corporations.</p><p>Mowi, formerly known as Marine Harvest, is the leader in the sector. The company operates in 25 countries.</p>"
},
"top-land": {
"title": "The new threat: on land plants",
"mainContent": "<p>In 2021, the theoretical combined production capacity of land-based salmon farms amounted to 2.5 million tons, nearly equaling the global production of salmon in marine farms (2.7 million tons).</p>",
"content": "<p>Land-based farms use RAS technology (Recirculating Aquaculture Systems) in fully enclosed tanks. Whilst, this approach to salmon farming gives control over the impact on biodiversity and the local environment (limited disease contamination, rejection of feces and salmon escapes), it also requires large amount of fresh water and is very energy-hungry, as it aims to recreate very precisely the natural conditions found in the sea.</p><p>As a result, the carbon footprint of salmon produced on land is higher than salmon produced in marine farms.</p><p>In order to make such farms profitable, the fish density can be 3 times higher than in marine farms. And there has been a small number of accidents where large number of fish died as a result of inadequate water conditions and a fire at a plant in Denmark.</p>"
},
"future-land-based": {
"title": "The future of land-based aquaculture farms",
"mainContent": "<p>A land-based farm producing 10,000 tons of salmon per year - if built - would require as much electricity as a city of 45,000 inhabitants (to be confirmed). Currently, there are several projects in Europe, including mega-farms aiming to produce 100,000 tons or more per year.</p>",
"content": "<p>Despite technological and profitability challenges, the industry is investing heavily in land-based farms, with a large number of projects announced over the past 5 years. Many farms are being planned or are under construction in Europe, Asia, the Middle East, and the United States to supply their local markets.</p>",
"data": [
{
"title": "+91.1",
"content": "Combined land-based farm (RAS) projects could represent an increase of over 91% in global salmon production."
},
{
"title": "291 Billion",
"content": "More than 290 billion wild fish, known as forage fish, will be harvested annually to produce the necessary meal to feed these new salmon."
},
{
"title": "1.4 Million",
"content": "These same meals contain soy. 975,000 hectares will be required for soy production, equivalent to approximately 1.4 million football fields."
},
{
"title": "15.8 Million",
"content": "The electricity consumption required for filtering, cooling, and circulating water in RAS farms is equivalent to the annual consumption of 15.8 million Europeans."
}
]
},
"companies-consumption": {
"title": "",
"mainContent": "<p>Les États-Unis sont de loin les plus gros consommateurs de saumon, suivis par le Japon et la Russie. Les pays européens sont également d’importants consommateurs de ce poisson. La consommation de saumon par habitant pour ces grands pays est d'environ 2 kg/personne/an et peut atteindre des valeurs supérieures à 5 kg/personne/an.</p>",
"content": "<p>La consommation apparente de saumon (toutes espèces confondues) est calculée comme la production, y compris l'aquaculture et la capture, plus les importations moins les exportations. Toutes les données sont fournies par la FAO. Les facteurs de conversion entre le poids du produit et le poids vif sont approximés à l'aide de la <a href=\"https://www.fao.org/3/bt963e/bt963e.pdf\">documentation de la FAQ</a></p><p>Ces approximations peuvent conduire à des indicateurs erronés, surtout dans les pays peu peuplés et/ou à forte production. C’est pour cette raison que la consommation par habitant n’est pas incluse dans le graphique.</p>"
}
}
},
"biodiversity": {
"title": "Biodiversity",
"blocks": {
"deforestation": {
"title": "Deforestation"
},
"escapes-rates": {
"title": "Escapes"
}
}
},
"health": {
"title": "Human health",
"blocks": {
"antibiotic-conso": {
"title": "Antibiotic consumption"
},
"microplastics": {
"title": "Microplastic"
}
}
},
"animals": {
"title": "Animal welfare",
"blocks": {
"stress-onshore": {
"title": "Stress in land-based facilities"
},
"mortality-rates": {
"title": "Mortality rate"
}
}
},
"climate": {
"title": "Climate",
"blocks": {
"carbon-bomb": {
"title": "Carbon impact"
}
}
},
"social": {
"title": "Social",
"blocks": {
"social-carbon": {
"title": "Carbon impact"
}
}
},
"alternative": {
"title": "Alternatives",
"blocks": {
"alternatives": {
"title": "Nutrition matrix"
}
}
}
},
"calculator": {
"salmon": "slaughtered salmon",
"fish": "forage fish caught to feed salmon",
"companies": "tonnes of CO2 emitted by industry",
"money": "Euros of turnover for market leading companies"
}
}
}
57 changes: 57 additions & 0 deletions messages/en/pages/story.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"story": {
"title": "The salmon you eat, sell, produce...",
"bomb": "kills, starves, contaminates.",
"explode": {
"intro": "The salmon industry is a bomb with multiple impacts",
"social": {
"title": "Social",
"content": "Diverts food from West African communities."
},
"climat": {
"title": "Climate",
"content": "Generates a carbon footprint equivalent to that of 10,000 inhabitants."
},
"health": {
"title": "Health",
"content": "Raises concerns about human health due to diseases requiring medication and microplastics."
},
"biodiversity": {
"title": "Biodiversity",
"content": "Degrades marine biodiversity, including escapees, pollution, parasites, and overexploitation of wild stocks."
},
"animals": {
"title": "Animal condition",
"content": "Stress, diseases, excess mortality as consequences of intensive breeding."
}
},
"edito": {
"social": {
"title": "Social",
"content": "Each year, over 500,000 tonnes of wild fish are harvested off the coast of West Africa to feed farmed fish, jeopardizing the food security of local communities."
},
"climat": {
"title": "Climate",
"content": "Intensive salmon farming generates greenhouse gas emissions, primarily carbon dioxide (CO2) from energy used in facilities, feed production, and transportation, as well as methane resulting from the decomposition of organic waste."
},
"health": {
"title": "Health",
"content": "The high concentration of fish in aquaculture farms promotes the spread of diseases, necessitating the use of pathogens or medications, which can have consequences for human health. Additionally, the increasing presence of microplastics in salmon raises concerns for human health.",
"credit": "Photo credit: Ramji / Bob Brown Foundation"
},
"biodiversity": {
"title": "Biodiversity",
"content": "Intensive salmon farming has significant impacts on marine biodiversity, including escapees, water pollution from waste discharge, parasites affecting wild populations, and increased pressure on wild fish stocks due to the demand for fishmeal, thereby contributing to overexploitation and declining biodiversity."
},
"animals": {
"title": "Animal condition",
"content": "The very high density of salmon in cages leads to illness and stress. Sea lice eat the flesh of disfigured fish. Mortality rates within cages are very abnormally high."
}
},
"industry": {
"title": "And all this with the impunity of an exponentially growing industry.",
"content": "Salmon production, dominated by a handful of multinationals, has experienced hyper-growth on a global scale for several dec",
"link": "We act"
}
}
}
32 changes: 32 additions & 0 deletions messages/fr/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"components": {
"summary": {
"title": "page"
},
"edito": {
"link": "En savoir plus"
},
"shareLink": {
"blank": "nouvel onglet",
"twitter": "Twitter",
"linkedin": "Linkedin",
"website": "Site internet",
"email": "E-mail"
},
"chart": {
"loading": "Chargement des données en cours..."
},
"calculator": {
"intro": "Voici les impacts de l'industrie du saumon dans le monde depuis que vous avez ouvert cette page web.",
"seconds": "secondes",
"second": "seconde"
},
"join": {
"title": "Be the change.",
"intro": "Il existe des alternatives au saumon dans notre manière de manger, de vendre et de produire.",
"content": "La France, située dans le top 3 des plus gros consommateurs de saumon au monde, porte une responsabilité particulière dans l'orientation des pratiques.",
"act": "Pour inverser la tendance et stopper le désastre, il est urgent d’agir. On a des leviers d’action !",
"link": "On agit"
}
}
}
21 changes: 21 additions & 0 deletions messages/fr/layout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"layout": {
"top": "Haut de page",
"nav": {
"title": "principale",
"story": "Story",
"dashboard": "Dashboard",
"act": "Agir",
"about": "À propos"
},
"footer": {
"allRight": "Tous droits réservé",
"and": "et"
}
},
"siteConfig": {
"title": "Pinkbombs",
"description": "Analyser l'impact du saumon sur l'environnement, l'écosystème, la santé et les communautés.",
"url": "https://pinkbombs-app.vercel.app"
}
}
5 changes: 5 additions & 0 deletions messages/fr/pages/about.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"about": {
"title": ""
}
}
30 changes: 30 additions & 0 deletions messages/fr/pages/act.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"act": {
"meta": {
"title": "Agir"
},
"title": "Bonne nouvelle : désamorcer les Pinkbombs est à portée de clic",
"company": {
"title": "J’interpelle les entreprises responsables",
"content": "en partageant un post d’information pré-rédigé qui les identifie sur Linkedin.",
"link": "Poster sur Linkedin",
"target": "#"
},
"territory": {
"title": "Je dis non au projet d’usine à saumons sur mon territoire",
"content": "Le projet d’usine à saumons à terre dénommé « Pure Salmon », initiative du fonds d’investissement Singapourien 8F Asset Management, est en discussion près de Bordeaux. Grâce aux pétitions signées par les citoyen.ne.s, il a notamment été retoqué au Pas-de-Calais et en Bretagne. Continuons !",
"link": "Signer la pétition",
"target": "#"
},
"seastemik": {
"title": "Je soutiens Seastemik",
"content": "Seastemik est une association créée en 2023 avec l’objectif d’accélérer notre transition vers un océan en bonne santé.<br />Pour mobiliser sur le terrain, elle travaille à la sensibilisation des communautés, l’accessibilité de l’information et la proposition de solutions.",
"link": "Contribuer sur HelloAsso",
"target": "#"
},
"eat": {
"title": "Je laisse les saumons en dehors de mon assiette",
"content": "Prêt.e.s à se mettre en chemin pour laisser les saumons dans les océans et les rivières? « Ensemble, on est une force immense ».<br />Quel objectif vous semble atteignable? Laissez-le nous dans notre boîte à intentions pour faire grandir la communauté !"
}
}
}
Loading
Loading