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, component: BrowsersTable,
}, },
{ {
label: <FormattedMessage id="metrics.operating-system" defaultMessage="Operating system" />, label: <FormattedMessage id="metrics.operating-systems" defaultMessage="Operating system" />,
value: 'os', value: 'os',
component: OSTable, component: OSTable,
}, },

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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