Commit aec79b70 authored by Akihiko Odaki's avatar Akihiko Odaki Committed by Eugen Rochko

Internationalize title (#67)

parent 9865eb16
......@@ -8,6 +8,7 @@ import classNames from 'classnames';
import Home from './Home';
import Sponsorship from './Sponsorship';
import ScrollToTop from './ScrollToTop';
import Title from './Title';
import { addLocaleData, IntlProvider } from 'react-intl';
import en from 'react-intl/locale-data/en';
......@@ -35,6 +36,7 @@ const App = ({ usersLocale }) => (
<div className={classNames('app', `lang-${usersLocale}`)}>
<Route exact path='/' component={Home} />
<Route path='/sponsors' component={Sponsorship} />
<Title />
import React from 'react';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
title: { id: 'title', defaultMessage: 'Giving social networking back to you - The Mastodon Project' }
class Title extends React.PureComponent {
render () {
document.title = this.props.intl.formatMessage(messages.title);
return null;
export default injectIntl(Title);
......@@ -52,6 +52,7 @@
"sponsorship.sponsors_text": "<strong>Sponsors</strong> are those that pledged $10 to $39 to Mastodon.",
"sponsorship.support_the_project": "Support the project",
"sponsorship.thanks_to": "Mastodon is <strong>free, open-source software</strong>. There is no advertising, monetizing, or venture capital. <strong>Your donations directly support full-time development of the project</strong>. Thank you to the following people and companies:",
"title": "Giving social networking back to you - The Mastodon Project",
"wizard.column.population": "Population",
"wizard.column.server": "Server",
"wizard.column.stability": "Stability",
......@@ -52,6 +52,7 @@
"sponsorship.sponsors_text": "<strong>スポンサー</strong>は10ドルから39ドルを拠出しているスポンサーです。",
"sponsorship.support_the_project": "プロジェクトをサポートする",
"sponsorship.thanks_to": "Mastodonは自由でオープンソースです。広告、マネタイジング、ベンチャーキャピタルなどはありません。あなたの寄付がプロジェクトのフルタイムの開発を直接サポートします。",
"title": "ソーシャルネットワーキングを、あなたの手の中に - Mastodonプロジェクト",
"wizard.column.population": "人数",
"wizard.column.server": "サーバー",
"wizard.column.stability": "安定性",
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