Skip to content

Commit

Permalink
Website: Extract translations for campaign and add Italian translation (
Browse files Browse the repository at this point in the history
  • Loading branch information
andrashee authored Dec 10, 2024
1 parent 9014645 commit 8e68f92
Show file tree
Hide file tree
Showing 10 changed files with 197 additions and 80 deletions.
28 changes: 28 additions & 0 deletions shared/locales/de/website-campaign.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"campaign": {
"not-found": "Die Kampagne konnte leider nicht gefunden werden.",
"by": "Von {{ creator }}",
"without-goal": {
"collected_zero": "Noch keine Spenden. Mache den ersten Schritt!",
"collected_one": "{{ amount, currency }} von {{ count }} Spender:in gesammelt",
"collected_other": "{{ amount, currency }} von {{ count }} Spender:innen gesammelt"
},
"with-goal": {
"collected-percentage": "{{percentage}}% gesammelt",
"goal-title": "Ziel",
"collected-amount_one": "{{ amount, currency }} von {{count}} Spender:in",
"collected-amount_other": "{{ amount, currency }} von {{count}} Spender:innen",
"goal-amount": "{{ amount, currency }}"
},
"days-left_zero": "Letzter Tag",
"days-left_one": "Noch einen Tag bis zum Spendeschluss",
"days-left_other": "{{ count }} verbleibende Tage",
"ended": "Die Kampagne ist beendet. Für reguläre Spenden verwende bitte die Hauptspendeseite.",
"card-title": "Mein Beitrag",
"about-si-title": "Über Social Income",
"about-si-text-1": "Social Income ist eine NGO mit Sitz in der Schweiz, die bedingungslose Geldüberweisungen per Mobiltelefon an Menschen in multidimensionaler Armut in Westafrika bereitstellt.",
"about-si-text-2": "Seit 2020 führt Social Income ein zeitlich unbegrenztes Programm für ein universelles Grundeinkommen in Sierra Leone durch.",
"more-faq": "<a href='/faq' target=\"_blank\">Mehr Fragen</a>",
"badge-highlight": "Aktuelle Kampagne"
}
}
26 changes: 0 additions & 26 deletions shared/locales/de/website-donate.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,31 +72,5 @@
"submit-button": "Account aktivieren",
"google-button": "Über Google anmelden"
}
},
"campaign": {
"not-found": "Die Kampagne konnte leider nicht gefunden werden.",
"by": "Von {{ creator }}",
"without-goal": {
"collected_zero": "Noch keine Spenden. Mache den ersten Schritt!",
"collected_one": "{{ amount, currency }} von {{ count }} Spender:in gesammelt",
"collected_other": "{{ amount, currency }} von {{ count }} Spender:innen gesammelt"
},
"with-goal": {
"collected-percentage": "{{percentage}}% gesammelt",
"goal-title": "Ziel",
"collected-amount_one": "{{ amount, currency }} von {{count}} Spender:in",
"collected-amount_other": "{{ amount, currency }} von {{count}} Spender:innen",
"goal-amount": "{{ amount, currency }}"
},
"days-left_zero": "Letzter Tag",
"days-left_one": "Noch einen Tag bis zum Spendeschluss",
"days-left_other": "{{ count }} verbleibende Tage",
"ended": "Die Kampagne ist beendet. Für reguläre Spenden verwende bitte die Hauptspendeseite.",
"card-title": "Mein Beitrag",
"about-si-title": "Über Social Income",
"about-si-text-1": "Social Income ist eine NGO mit Sitz in der Schweiz, die bedingungslose Geldüberweisungen per Mobiltelefon an Menschen in multidimensionaler Armut in Westafrika bereitstellt.",
"about-si-text-2": "Seit 2020 führt Social Income ein zeitlich unbegrenztes Programm für ein universelles Grundeinkommen in Sierra Leone durch.",
"more-faq": "<a href='/faq' target=\"_blank\">Mehr Fragen</a>",
"badge-highlight": "Aktuelle Kampagne"
}
}
28 changes: 28 additions & 0 deletions shared/locales/en/website-campaign.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"campaign": {
"not-found": "Unfortunately, the campaign couldn't be found.",
"by": "By {{ creator }}",
"without-goal": {
"collected_zero": "No contributions yet. Be the first!",
"collected_one": "{{ amount, currency }} raised by {{ count }} contributor",
"collected_other": "{{ amount, currency }} raised by {{ count }} contributors"
},
"with-goal": {
"collected-percentage": "Raised {{percentage}}%",
"goal-title": "Goal",
"collected-amount_one": "{{ amount, currency }} by {{count}} contributor",
"collected-amount_other": "{{ amount, currency }} by {{count}} contributors",
"goal-amount": "{{ amount, currency }}"
},
"days-left_zero": "Last day left to contribute",
"days-left_one": "1 day left to contribute",
"days-left_other": "{{ count }} days left to contribute",
"ended": "The campaign has ended. For regular donations, please use the main donation page.",
"card-title": "My Contribution",
"about-si-title": "About Social Income",
"about-si-text-1": "Social Income is a nonprofit organization based in Switzerland that provides unconditional cash transfers via mobile phone to people living in multidimensional poverty in West Africa.",
"about-si-text-2": "Since 2020, Social Income has been running an open-ended universal basic income program in Sierra Leone.",
"more-faq": "<a href='/faq' target=\"_blank\">More questions</a>",
"badge-highlight": "Ongoing Campaign"
}
}
26 changes: 0 additions & 26 deletions shared/locales/en/website-donate.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,31 +72,5 @@
"submit-button": "Activate Account",
"google-button": "Sign up with Google"
}
},
"campaign": {
"not-found": "Unfortunately, the campaign couldn't be found.",
"by": "By {{ creator }}",
"without-goal": {
"collected_zero": "No contributions yet. Be the first!",
"collected_one": "{{ amount, currency }} raised by {{ count }} contributor",
"collected_other": "{{ amount, currency }} raised by {{ count }} contributors"
},
"with-goal": {
"collected-percentage": "Raised {{percentage}}%",
"goal-title": "Goal",
"collected-amount_one": "{{ amount, currency }} by {{count}} contributor",
"collected-amount_other": "{{ amount, currency }} by {{count}} contributors",
"goal-amount": "{{ amount, currency }}"
},
"days-left_zero": "Last day left to contribute",
"days-left_one": "1 day left to contribute",
"days-left_other": "{{ count }} days left to contribute",
"ended": "The campaign has ended. For regular donations, please use the main donation page.",
"card-title": "My Contribution",
"about-si-title": "About Social Income",
"about-si-text-1": "Social Income is a nonprofit organization based in Switzerland that provides unconditional cash transfers via mobile phone to people living in multidimensional poverty in West Africa.",
"about-si-text-2": "Since 2020, Social Income has been running an open-ended universal basic income program in Sierra Leone.",
"more-faq": "<a href='/faq' target=\"_blank\">More questions</a>",
"badge-highlight": "Ongoing Campaign"
}
}
28 changes: 28 additions & 0 deletions shared/locales/fr/website-campaign.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"campaign": {
"not-found": "La campagne est malheureusement introuvable.",
"by": "Par {{ creator }}",
"without-goal": {
"collected_zero": "Il n’y a pas encore de dons. Fais le premier pas!",
"collected_one": "Reçu {{ amount, currency }} de {{ count }} personne",
"collected_other": "Reçu {{ amount, currency }} de {{ count }} personnes"
},
"with-goal": {
"collected-percentage": "Reçu {{percentage}}%",
"goal-title": "Objectif",
"collected-amount_one": "Reçu {{ amount, currency }} de {{count}} personne",
"collected-amount_other": "Reçu {{ amount, currency }} de {{count}} personnes",
"goal-amount": "{{ amount, currency }}"
},
"days-left_zero": "Dernier jour",
"days-left_one": "Plus qu’un jour jusqu’à la clôture de la campagne",
"days-left_other": "Encore {{ count }} pour contribuer",
"ended": " La campagne est terminée. Tu peux faire un don en allant sur la page principale du site.",
"card-title": "Ma contribution",
"about-si-title": "Über Social Income",
"about-si-text-1": "Social Income est une ONG basée en Suisse qui assure des transferts d’argent inconditionnels par téléphone mobile à des personnes vivant dans une pauvreté multidimensionnelle en Afrique de l’Ouest.",
"about-si-text-2": "Depuis 2020, Social Income gère un programme de revenu de base universel non limité dans le temps en Sierra Leone.",
"more-faq": "<a href='/faq' target=\"_blank\">Plus de questions</a>",
"badge-highlight": "Campagne actuelle"
}
}
26 changes: 0 additions & 26 deletions shared/locales/fr/website-donate.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,31 +73,5 @@
"submit-button": "Activer le compte",
"google-button": "S’inscrire avec Google"
}
},
"campaign": {
"not-found": "La campagne est malheureusement introuvable.",
"by": "Par {{ creator }}",
"without-goal": {
"collected_zero": "Il n’y a pas encore de dons. Fais le premier pas!",
"collected_one": "Reçu {{ amount, currency }} de {{ count }} personne",
"collected_other": "Reçu {{ amount, currency }} de {{ count }} personnes"
},
"with-goal": {
"collected-percentage": "Reçu {{percentage}}%",
"goal-title": "Objectif",
"collected-amount_one": "Reçu {{ amount, currency }} de {{count}} personne",
"collected-amount_other": "Reçu {{ amount, currency }} de {{count}} personnes",
"goal-amount": "{{ amount, currency }}"
},
"days-left_zero": "Dernier jour",
"days-left_one": "Plus qu’un jour jusqu’à la clôture de la campagne",
"days-left_other": "Encore {{ count }} pour contribuer",
"ended": " La campagne est terminée. Tu peux faire un don en allant sur la page principale du site.",
"card-title": "Ma contribution",
"about-si-title": "Über Social Income",
"about-si-text-1": "Social Income est une ONG basée en Suisse qui assure des transferts d’argent inconditionnels par téléphone mobile à des personnes vivant dans une pauvreté multidimensionnelle en Afrique de l’Ouest.",
"about-si-text-2": "Depuis 2020, Social Income gère un programme de revenu de base universel non limité dans le temps en Sierra Leone.",
"more-faq": "<a href='/faq' target=\"_blank\">Plus de questions</a>",
"badge-highlight": "Campagne actuelle"
}
}
28 changes: 28 additions & 0 deletions shared/locales/it/website-campaign.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"campaign": {
"not-found": "Purtroppo, la campagna non è stata trovata.",
"by": "Di {{ creator }}",
"without-goal": {
"collected_zero": "Nessun contributo ancora. Sii il primo!",
"collected_one": "{{ amount, currency }} raccolti da {{ count }} sostenitore",
"collected_other": "{{ amount, currency }} raccolti da {{ count }} sostenitori"
},
"with-goal": {
"collected-percentage": "Raggiunto il {{percentage}}%",
"goal-title": "Obiettivo",
"collected-amount_one": "{{ amount, currency }} da {{count}} sostenitore",
"collected-amount_other": "{{ amount, currency }} da {{count}} sostenitori",
"goal-amount": "{{ amount, currency }}"
},
"days-left_zero": "Ultimo giorno per contribuire",
"days-left_one": "1 giorno rimanente per contribuire",
"days-left_other": "{{ count }} giorni rimanenti per contribuire",
"ended": "La campagna è terminata. Per donazioni regolari, si prega di utilizzare la pagina principale delle donazioni.",
"card-title": "Il Mio Contributo",
"about-si-title": "Informazioni su Social Income",
"about-si-text-1": "Social Income è un'organizzazione no-profit con sede in Svizzera che fornisce trasferimenti di denaro incondizionati tramite cellulare a persone che vivono in condizioni di povertà multidimensionale nell'Africa occidentale.",
"about-si-text-2": "Dal 2020, Social Income gestisce un programma di reddito di base universale aperto in Sierra Leone.",
"more-faq": "<a href='/faq' target=\"_blank\">Altre domande</a>",
"badge-highlight": "Campagna in corso"
}
}
3 changes: 3 additions & 0 deletions shared/locales/it/website-donate.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"8": "Il tuo contributo mensile di {{ amount, currency }} è straordinario, così come il tuo impatto."
},
"donation-interval": {
"0": {
"title": "Donazione una tantum"
},
"1": {
"title": "Mensile",
"text": "Dona {{ amount, currency }} ogni mese"
Expand Down
80 changes: 80 additions & 0 deletions shared/locales/it/website-videos.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"credits": "Crediti",
"id": {
"video-01": "896169775",
"video-02": "433937157",
"video-03": "840215695"
},
"video-01": {
"credits": [
{
"role": "Direttore della Fotografia",
"name": "Gabriel Koller"
},
{
"role": "Montatore",
"name": "Nicolas Küng"
},
{
"role": "Sound Design & Musica",
"name": "Tidiane Sane"
},
{
"role": "Mix & Mastering",
"name": "Nicola-Miloš Mišić"
},
{
"role": "Colorista",
"name": "Simon Hardegger"
},
{
"role": "Assistente alla Camera",
"name": "Felix Rhodes"
},
{
"role": "Narratore",
"name": "Ted Limpert"
},
{
"role": "Animatore Grafico",
"name": "Raphael Schoen"
},
{
"role": "Traduttore (Sottotitoli)",
"name": "Françoise Légeret (FR), Riccardo Tamburini (ES, IT)"
}
]
},
"video-02": {
"credits": [
{
"role": "Illustrazioni",
"name": "Sueter Studio"
},
{
"role": "Storyboard",
"name": "Sandino Scheidegger"
},
{
"role": "Narratore",
"name": "Ted Limpert"
}
]
},
"video-03": {
"credits": [
{
"role": "Illustrazioni",
"name": "Sueter Studio"
},
{
"role": "Storyboard",
"name": "Riccardo Tamburini"
},
{
"role": "Narratore",
"name": "Ted Limpert"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ export async function generateMetadata({ params }: CampaignPageProps) {
},
}
: undefined;
return getMetadata(params.lang, 'website-donate', campaignMetadata);
return getMetadata(params.lang, 'website-campaign', campaignMetadata);
}

export default async function Page({ params }: CampaignPageProps) {
const translator = await Translator.getInstance({
language: params.lang,
namespaces: ['website-donate', 'website-videos', 'website-faq'],
namespaces: ['website-campaign', 'website-donate', 'website-videos', 'website-faq'],
});

const campaignDoc = await firestoreAdmin.collection<Campaign>(CAMPAIGN_FIRESTORE_PATH).doc(params.campaign).get();
Expand Down

0 comments on commit 8e68f92

Please sign in to comment.