Commit 5834bf8b authored by Matija Obreza's avatar Matija Obreza

Updated i18n

- Support {{count, number}} format
parent 862a0c22
Pipeline #7480 passed with stages
in 4 minutes and 19 seconds
......@@ -25,6 +25,8 @@ const optionsBase = {
return value.toUpperCase();
} else if (format === 'lowercase') {
return value.toLowerCase();
} else if (format === 'number') {
return value && value.toLocaleString();
}
return value;
},
......
......@@ -684,7 +684,8 @@
"excel": "Copy and paste the table from Excel into the text field \"List of accessions described in the dataset\".",
"listDescribed": "List of accessions described in the dataset",
"placeholder": "Paste accessions data here (comma separated)",
"rowCount": "Accessions {{rows, numeric}} rows"
"rowCount": "{{count, number}} accession",
"rowCount_plural": "{{count, number}} accessions"
},
"pastingTraits": {
"title": "Select descriptors in batch",
......@@ -868,7 +869,7 @@
"basicInfo": "Basic information",
"import": {
"title": "Upload new descriptors",
"uploaded": "Uploaded {{count}} descriptor definitions",
"uploaded": "Uploaded {{count, number}} descriptor definitions",
"noDescriptors": "No descriptors uploaded",
"error": "error",
"error_plural": "errors",
......
......@@ -104,7 +104,8 @@
"excel": "Copy and paste the table from Excel into the text field \"List of accessions described in the dataset\".",
"listDescribed": "List of accessions described in the dataset",
"placeholder": "Paste accessions data here (comma separated)",
"rowCount": "Accessions {{rows, numeric}} rows"
"rowCount": "{{count, number}} accession",
"rowCount_plural": "{{count, number}} accessions"
},
"pastingTraits": {
"title": "Select descriptors in batch",
......
......@@ -141,7 +141,7 @@ class ListOfAccession extends React.Component<IListOfAccession, any> {
{ uploading && <Loading message={ uploadText } /> }
<h3>{ t('datasets.dashboard.p.stepper.listOfAccessions.rowCount', {rows: accessionRefs ? accessionRefs.length : 0}) }</h3>
<h3>{ t('datasets.dashboard.p.stepper.listOfAccessions.rowCount', {count: accessionRefs ? accessionRefs.length : 0}) }</h3>
<AccessionRefsTable accessionRefs={ accessionRefs } />
</div>
);
......
......@@ -77,7 +77,7 @@
"basicInfo": "Basic information",
"import": {
"title": "Upload new descriptors",
"uploaded": "Uploaded {{count}} descriptor definitions",
"uploaded": "Uploaded {{count, number}} descriptor definitions",
"noDescriptors": "No descriptors uploaded",
"error": "error",
"error_plural": "errors",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment