1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-10-16 20:17:25 +00:00

🌍 Translated UI

This commit is contained in:
@uni-chiara 2021-05-22 11:13:46 +02:00
parent 7a6e72c830
commit 1f2006c079
3 changed files with 12 additions and 4 deletions

View file

@ -29,6 +29,8 @@ export default {
byHashtag: "hashtag", byHashtag: "hashtag",
byUser: "utente", byUser: "utente",
byTimePeriod: "arco di tempo", byTimePeriod: "arco di tempo",
byContents: "contenuti",
byHasPlace: "localizzazione attiva?",
timeBefore: "Prima", timeBefore: "Prima",
timeAfter: "Dopo", timeAfter: "Dopo",
conditions: "Condizioni", conditions: "Condizioni",
@ -99,6 +101,7 @@ export default {
imgTweetsPerc: "% di tweet con immagine", imgTweetsPerc: "% di tweet con immagine",
postUniq: "Totale utenti che hanno postato", postUniq: "Totale utenti che hanno postato",
postPop: "Utente più attivo", postPop: "Utente più attivo",
filters: "Filtri",
}, },
// 🇬🇧 // 🇬🇧
en: { en: {
@ -119,6 +122,8 @@ export default {
byHashtag: "hashtag", byHashtag: "hashtag",
byUser: "user", byUser: "user",
byTimePeriod: "time period", byTimePeriod: "time period",
byContents: "contents",
byHasPlace: "is localized?",
timeBefore: "Before", timeBefore: "Before",
timeAfter: "After", timeAfter: "After",
conditions: "Conditions", conditions: "Conditions",
@ -189,6 +194,7 @@ export default {
imgTweetsPerc: "% of tweets with image", imgTweetsPerc: "% of tweets with image",
postUniq: "Unique posters", postUniq: "Unique posters",
postPop: "Most active poster", postPop: "Most active poster",
filters: "Filters",
}, },
// 🇫🇮 // 🇫🇮
fi: { fi: {
@ -209,6 +215,8 @@ export default {
byHashtag: "hashtagin mukaan", byHashtag: "hashtagin mukaan",
byUser: "käyttäjän mukaan", byUser: "käyttäjän mukaan",
byTimePeriod: "aikajakson mukaan", byTimePeriod: "aikajakson mukaan",
byContents: "sisältö",
byHasPlace: "on paikallistettu?",
timeBefore: "Ennen", timeBefore: "Ennen",
timeAfter: "Jälkeen", timeAfter: "Jälkeen",
conditions: "Ehdot", conditions: "Ehdot",
@ -279,5 +287,6 @@ export default {
imgTweetsPerc: "% twiiteistä, joissa on kuva", imgTweetsPerc: "% twiiteistä, joissa on kuva",
postUniq: "Ainutkertaiset käyttäjät", postUniq: "Ainutkertaiset käyttäjät",
postPop: "Aktiivisimmat käyttäjät", postPop: "Aktiivisimmat käyttäjät",
filters: "Suodattimet",
}, },
} }

View file

@ -22,9 +22,9 @@ export default function BoxFilterHashtag({ ...props }) {
<span> <span>
{strings.searchBy} {strings.searchBy}
&nbsp; &nbsp;
<FontAwesomeIcon icon={faClock}/> <FontAwesomeIcon icon={faHashtag}/>
&nbsp; &nbsp;
{strings.byTimePeriod} {strings.byHashtag}
</span> </span>
} }
{...props} {...props}

View file

@ -18,9 +18,8 @@ export default function BoxFilters({ ...props }) {
const badges = filters.map((filter, pos) => <BadgeFilter key={pos} filter={filter}/>) const badges = filters.map((filter, pos) => <BadgeFilter key={pos} filter={filter}/>)
// TODO: localize this
return ( return (
<BoxFull header={"Filters"} {...props}> <BoxFull header={strings.filters} {...props}>
{badges} {badges}
</BoxFull> </BoxFull>
) )