Fix language strings.

This commit is contained in:
Mike Cao 2020-09-12 03:22:14 -07:00
parent 996b4c7102
commit 29049842de
12 changed files with 16 additions and 14 deletions

View File

@ -59,7 +59,7 @@ export default function WebsiteDetails({ websiteId }) {
component: BrowsersTable,
},
{
label: <FormattedMessage id="metrics.operating-system" defaultMessage="Operating system" />,
label: <FormattedMessage id="metrics.operating-systems" defaultMessage="Operating system" />,
value: 'os',
component: OSTable,
},

View File

@ -6,7 +6,7 @@ import { FormattedMessage } from 'react-intl';
export default function OSTable({ websiteId, limit, onExpand }) {
return (
<MetricsTable
title={<FormattedMessage id="metrics.operating-system" defaultMessage="Operating system" />}
title={<FormattedMessage id="metrics.operating-systems" defaultMessage="Operating system" />}
type="os"
metric={<FormattedMessage id="metrics.visitors" defaultMessage="Visitors" />}
websiteId={websiteId}

View File

@ -51,7 +51,7 @@ export default function AccountSettings() {
},
{
key: 'is_admin',
label: <FormattedMessage id="label.adminsitrator" defaultMessage="Administrator" />,
label: <FormattedMessage id="label.administrator" defaultMessage="Administrator" />,
className: 'col-6 col-md-4',
render: Checkmark,
},

View File

@ -38,7 +38,9 @@ export default function ProfileSettings() {
<dd>{user.username}</dd>
</dl>
{changePassword && (
<Modal title="Change password">
<Modal
title={<FormattedMessage id="button.change-password" defaultMessage="Change password" />}
>
<ChangePasswordForm
values={{ user_id }}
onSave={handleSave}

View File

@ -170,7 +170,7 @@
"metrics.filter.raw": {
"defaultMessage": "Rohdaten"
},
"metrics.operating-system": {
"metrics.operating-systems": {
"defaultMessage": "Betriebssystem"
},
"metrics.page-views": {

View File

@ -170,8 +170,8 @@
"metrics.filter.raw": {
"defaultMessage": "Raw"
},
"metrics.operating-system": {
"defaultMessage": "Operating system"
"metrics.operating-systems": {
"defaultMessage": "Operating systems"
},
"metrics.page-views": {
"defaultMessage": "Page views"

View File

@ -170,7 +170,7 @@
"metrics.filter.raw": {
"defaultMessage": "すべて表示"
},
"metrics.operating-system": {
"metrics.operating-systems": {
"defaultMessage": "OS"
},
"metrics.page-views": {

View File

@ -170,7 +170,7 @@
"metrics.filter.raw": {
"defaultMessage": "Ruw"
},
"metrics.operating-system": {
"metrics.operating-systems": {
"defaultMessage": "Besturingssysteem"
},
"metrics.page-views": {

View File

@ -170,7 +170,7 @@
"metrics.filter.raw": {
"defaultMessage": "Сырые данные"
},
"metrics.operating-system": {
"metrics.operating-systems": {
"defaultMessage": "Операционная система"
},
"metrics.page-views": {

View File

@ -170,7 +170,7 @@
"metrics.filter.raw": {
"defaultMessage": "Ham"
},
"metrics.operating-system": {
"metrics.operating-systems": {
"defaultMessage": "İşletim sistemi"
},
"metrics.page-views": {

View File

@ -170,7 +170,7 @@
"metrics.filter.raw": {
"defaultMessage": "原始"
},
"metrics.operating-system": {
"metrics.operating-systems": {
"defaultMessage": "操作系统"
},
"metrics.page-views": {

View File

@ -31,11 +31,11 @@ export const dateLocales = {
export const menuOptions = [
{ label: 'English', value: 'en', display: 'EN' },
{ label: '中文 (Chinese Simplified)', value: 'zh-CN', display: '中文' },
{ label: 'Deutsch (German)', value: 'de-DE', display: 'DE' },
{ label: 'Nederlands (Dutch)', value: 'nl-NL', display: 'NL' },
{ label: 'Deutsch (German)', value: 'de-DE', display: 'DE' },
{ label: '日本語 (Japanese)', value: 'ja-JP', display: '日本語' },
{ label: 'Русский (Russian)', value: 'ru-RU', display: 'РУ' },
{ label: 'Turkish', value: 'tr-TR', display: 'TR' },
{ label: '日本語 (Japanese)', value: 'ja-JP', display: 'JP' },
];
export function dateFormat(date, str, locale) {