Skip to content
Open
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: 1 addition & 1 deletion public/locales/ar/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pieChartLabel": "{count, plural, zero {{percent}% ({count} الأقران)} one {{percent}% ({count} Peer)} two {{percent}% ({count} Peers)} few {{percent}% ({count} Peers)} many {{percent}% ({count} Peers)} other {{percent}% ({count} Peers)}}",
"countMore": "و... {count} اكثر",
"StatusConnected": {
"paragraph1": "استضافة <0>{repoSize} الملفات </0>",
"paragraph1": "استضافة <0>{repoSize} GB الملفات </0>",
"paragraph2": "{count, plural, zero {Discovered <0>{peersCount} peers</0>} one {Discovered <0>1 peer</0>} two {Discovered <0>1 peer</0>} few {Discovered <0>1 peer</0>} many {المكتشفة <0>1 الأقران</0>} other {المكتشفة <0>{peersCount} الأقران</0>}}"
},
"customApiConfig": "تكوين JSON المخصص",
Expand Down
2 changes: 1 addition & 1 deletion public/locales/cs/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pieChartLabel": "{count, plural, one {{percent}% ({count} Uzel)} few {{percent}% ({count} Uzlů)} many {{percent}% ({count} Uzlů)} other {{percent}% ({count} Uzlů)}}",
"countMore": "... a {count} více",
"StatusConnected": {
"paragraph1": "Hosting <0>{repoSize} souborů</0>",
"paragraph1": "Hosting <0>{repoSize} GB souborů</0>",
"paragraph2": "{count, plural, one {Objeven <0>1 peer</0>} few {Objeveny <0>{peersCount} peery</0>} many {Objeveno <0>{peersCount} peerů</0>} other {Objeveno <0>{peersCount} uzlů</0>}}"
},
"customApiConfig": "Custom JSON configuration",
Expand Down
2 changes: 1 addition & 1 deletion public/locales/da/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"revision": "Udgave",
"StatusConnected": {
"header1": "Forbundet til BTFS",
"paragraph1": "Hoster<0>{repoSize} af filer</0>",
"paragraph1": "Hoster<0>{repoSize} GB af filer</0>",
"paragraph2": "{count, plural, one {Fandt<0>1 klient</0>} other {Fandt<0>{peersCount} klienter</0>}}"
},
"StatusNotConnected": {
Expand Down
2 changes: 1 addition & 1 deletion public/locales/de/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pieChartLabel": "{count, plural, one {{percent}% ({count} Peer)} other {{percent}% ({count} Peers)}}",
"countMore": "...und {count} weitere",
"StatusConnected": {
"paragraph1": "<0>{repoSize} an Dateien</0> gehostet",
"paragraph1": "<0>{repoSize} GB an Dateien</0> gehostet",
"paragraph2": "{count, plural, one {Discovered <0>1 peer</0>} other {<0>{peersCount} Peers</0> entdeckt}}"
},
"customApiConfig": "Benutzerdefinierte JSON-Konfiguration",
Expand Down
2 changes: 1 addition & 1 deletion public/locales/en/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pieChartLabel": "{count, plural, one {{percent}% ({count} Peer)} other {{percent}% ({count} Peers)}}",
"countMore": "...and {count} more",
"StatusConnected": {
"paragraph1": "Hosting <0>{repoSize} of files</0>",
"paragraph1": "Hosting <0>{repoSize} GB of files</0>",
"paragraph2": "{count, plural, one {Discovered <0>1 peer</0>} other {Discovered <0>{peersCount} peers</0>}}"
},
"customApiConfig": "Custom JSON configuration",
Expand Down
2 changes: 1 addition & 1 deletion public/locales/es/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pieChartLabel": "{count, plural, one {{percent}% ({count} Peer)} other {{percent}% ({count} Peers)}}",
"countMore": "...y {count} más",
"StatusConnected": {
"paragraph1": "Hospedaje <0>{repoSize} de archivos</0>",
"paragraph1": "Hospedaje <0>{repoSize} GB de archivos</0>",
"paragraph2": "{count, plural, one {Discovered <0>1 peer</0>} other {Discovered <0>{peersCount} peers</0>}}"
},
"customApiConfig": "Custom JSON configuration",
Expand Down
2 changes: 1 addition & 1 deletion public/locales/fr/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pieChartLabel": "{count, plural, one {{percent}% ({count} Pair)} other {{percent}% ({count} Pairs)}}",
"countMore": "...et {count} de plus",
"StatusConnected": {
"paragraph1": "<0>{repoSize} de fichiers</0> hébergés",
"paragraph1": "<0>{repoSize} GB de fichiers</0> hébergés",
"paragraph2": "{count, plural, one {<0>1 pair</0> découvert} other {<0>{peersCount} pairs</0> découverts}}"
},
"customApiConfig": "JSON de configuration personnalisée",
Expand Down
2 changes: 1 addition & 1 deletion public/locales/it/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pieChartLabel": "{count, plural, one {{percent}% ({count} Peer)} other {{percent}% ({count} Peer)}}",
"countMore": "... e {count} in più",
"StatusConnected": {
"paragraph1": "Ospiti <0>{repoSize} di file</0>",
"paragraph1": "Ospiti <0>{repoSize} GB di file</0>",
"paragraph2": "{count, plural, one {Trovato <0>1 Peer</0>} other {Trovati <0>{peersCount} peer</0>}}"
},
"customApiConfig": "Custom JSON configuration",
Expand Down
2 changes: 1 addition & 1 deletion public/locales/ja-JP/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pieChartLabel": "{count, plural, other {{percent}%({count} ピア)}}",
"countMore": "ほか{count}項目",
"StatusConnected": {
"paragraph1": "<0>{repoSize}個のファイル</0>をホスティング中",
"paragraph1": "<0>{repoSize} GB個のファイル</0>をホスティング中",
"paragraph2": "{count, plural, other {<0>{peersCount}個のピア</0>と通信中}}"
},
"customApiConfig": "Custom JSON configuration",
Expand Down
2 changes: 1 addition & 1 deletion public/locales/ko-KR/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"revision": "개정",
"StatusConnected": {
"header1": "Connected to BTFS",
"paragraph1": "Hosting <0>{repoSize} of files</0>",
"paragraph1": "Hosting <0>{repoSize} GB of files</0>",
"paragraph2": "{count, plural, one {Discovered <0>1 peer</0>} other {Discovered <0>{peersCount} peers</0>}}"
},
"StatusNotConnected": {
Expand Down
2 changes: 1 addition & 1 deletion public/locales/nl/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"revision": "Revisie",
"StatusConnected": {
"header1": "Verbind met BTFS",
"paragraph1": "Hosting <0>{repoSize} of files</0>",
"paragraph1": "Hosting <0>{repoSize} GB of files</0>",
"paragraph2": "{count, plural, one {Discovered <0>1 peer</0>} other {Discovered <0>{peersCount} peers</0>}}"
},
"StatusNotConnected": {
Expand Down
2 changes: 1 addition & 1 deletion public/locales/no/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"revision": "Revisjon",
"StatusConnected": {
"header1": "Koblet til BTFS",
"paragraph1": "Hoster <0>{repoSize} filer</0>",
"paragraph1": "Hoster <0>{repoSize} GB filer</0>",
"paragraph2": "{count, plural, one {Oppdaget <0>1 peer</0>} other {Oppdaget <0>{peersCount} peers</0>}}"
},
"StatusNotConnected": {
Expand Down
2 changes: 1 addition & 1 deletion public/locales/pt/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"revision": "Revisão",
"StatusConnected": {
"header1": "Conectado ao BTFS",
"paragraph1": "A hospedar <0>{repoSize}em ficheiros</0>",
"paragraph1": "A hospedar <0>{repoSize} GB em ficheiros</0>",
"paragraph2": "{count, plural, one {Encontrado <0>1 par</0>} other {Encontrados <0>{peersCount}pares</0>}}"
},
"StatusNotConnected": {
Expand Down
2 changes: 1 addition & 1 deletion public/locales/sk/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"revision": "Revízia",
"StatusConnected": {
"header1": "Pripojené k BTFS",
"paragraph1": "Hostuje <0>{repoSize} súborov</0>",
"paragraph1": "Hostuje <0>{repoSize} GB súborov</0>",
"paragraph2": "{count, plural, one {Objavený <0>1 uzol</0>} few {Objavených <0>{peersCount} uzlov</0>} many {Objavených <0>{peersCount} </0>uzlov} other {Objavených <0>{peersCount} uzlov</0>}}"
},
"StatusNotConnected": {
Expand Down
2 changes: 1 addition & 1 deletion public/locales/sv/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"revision": "Revision",
"StatusConnected": {
"header1": "Connected to BTFS",
"paragraph1": "Hosting <0>{repoSize} of files</0>",
"paragraph1": "Hosting <0>{repoSize} GB of files</0>",
"paragraph2": "{count, plural, one {Discovered <0>1 peer</0>} other {Discovered <0>{peersCount} peers</0>}}"
},
"StatusNotConnected": {
Expand Down
2 changes: 1 addition & 1 deletion public/locales/zh-CN/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pieChartLabel": "{count, plural, other {{percent}% ({count} 节点)}}",
"countMore": "...{count} 更多",
"StatusConnected": {
"paragraph1": "已托管 <0>{repoSize} 文件</0>",
"paragraph1": "已托管 <0>{repoSize} GB 文件</0>",
"paragraph2": "{count, plural, other {已发现 <0>{peersCount} 节点</0>}}"
},
"customApiConfig": "自定义JSON配置",
Expand Down
2 changes: 1 addition & 1 deletion public/locales/zh-TW/status.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pieChartLabel": "{count, plural, other {{percent}% ({count} 節點)}}",
"countMore": "...{count} 更多",
"StatusConnected": {
"paragraph1": "託管 <0>{repoSize} 文件</0>",
"paragraph1": "託管 <0>{repoSize} GB 文件</0>",
"paragraph2": "{count, plural, other {發現 <0>{peersCount} 節點</0>}}"
},
"customApiConfig": "Custom JSON configuration",
Expand Down
5 changes: 2 additions & 3 deletions src/status/StatusConnected.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React from 'react'
import { withTranslation, Trans } from 'react-i18next'
import { connect } from 'redux-bundler-react'
import filesize from 'filesize'

export const StatusConnected = ({ t, peersCount, repoSize }) => {
const humanRepoSize = filesize(repoSize || 0, { round: 1 })
const humanRepoSize = Math.floor(repoSize/Math.pow(1e3,3)) || 0
return (
<header>
<h1 className='montserrat fw2 f3 charcoal ma0 pt0 pb2'>
Expand All @@ -14,7 +13,7 @@ export const StatusConnected = ({ t, peersCount, repoSize }) => {
<span className='db dib-ns'>
<Trans
i18nKey='StatusConnected.paragraph1' t={t}
defaults='Hosting <0>{repoSize} of files</0>'
defaults='Hosting <0>{repoSize} GB of files</0>'
values={{ repoSize: humanRepoSize }}
components={[<a className='link blue' href='#/files'>?</a>]}
/>
Expand Down