forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
お気に入りタグ機能のロケール対応 #37
Merged
Merged
お気に入りタグ機能のロケール対応 #37
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reactでのlocaleはymlファイルではなくjsのjsonファイルをいじる必要があります。 |
reactのロケールはjsでしたねそうでしたね… |
( ・∀・)つpatchドゾー diff --git a/app/javascript/mastodon/features/compose/components/favourite_tags.js b/app/javascript/mastodon/features/compose/components/favourite_tags.js
index 4903cdd2..b220f31e 100644
--- a/app/javascript/mastodon/features/compose/components/favourite_tags.js
+++ b/app/javascript/mastodon/features/compose/components/favourite_tags.js
@@ -36,6 +36,8 @@ class FavouriteTags extends React.PureComponent {
}
render () {
+ const { intl } = this.props;
+
const tags = this.props.tags.map(tag => (
<li key={tag.get('name')}>
<Link
@@ -58,7 +60,7 @@ class FavouriteTags extends React.PureComponent {
<div className='favourite-tags'>
<div className='favourite-tags__header'>
<i className='fa fa-tag' />
- <div className='favourite-tags__header__name'>{formatMessage(messages.favourite_tags)}</div>
+ <div className='favourite-tags__header__name'>{intl.formatMessage(messages.favourite_tags)}</div>
<div className='favourite-tags__lock'>
<a href='/settings/favourite_tags'>
<i className='fa fa-gear' />
diff --git a/app/javascript/mastodon/locales/defaultMessages.json b/app/javascript/mastodon/locales/defaultMessages.json
index b75aab19..1cbe5eb8 100644
--- a/app/javascript/mastodon/locales/defaultMessages.json
+++ b/app/javascript/mastodon/locales/defaultMessages.json
@@ -551,6 +551,15 @@
{
"descriptors": [
{
+ "defaultMessage": "Favourite tags",
+ "id": "settings.favourite_tags"
+ }
+ ],
+ "path": "app/javascript/mastodon/features/compose/components/favourite_tags.json"
+ },
+ {
+ "descriptors": [
+ {
"defaultMessage": "Edit profile",
"id": "navigation_bar.edit_profile"
}
diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json
index fae2016c..31965cc6 100644
--- a/app/javascript/mastodon/locales/en.json
+++ b/app/javascript/mastodon/locales/en.json
@@ -159,6 +159,7 @@
"report.target": "Reporting {target}",
"search.placeholder": "Search",
"search_results.total": "{count, number} {count, plural, one {result} other {results}}",
+ "settings.favourite_tags": "Favourite tags",
"standalone.public_title": "A look inside...",
"status.cannot_reblog": "This post cannot be boosted",
"status.delete": "Delete",
diff --git a/app/javascript/mastodon/locales/ja.json b/app/javascript/mastodon/locales/ja.json
index da3b55f8..8a09aea0 100644
--- a/app/javascript/mastodon/locales/ja.json
+++ b/app/javascript/mastodon/locales/ja.json
@@ -159,6 +159,7 @@
"report.target": "{target} を通報する",
"search.placeholder": "検索",
"search_results.total": "{count, number}件の結果",
+ "settings.favourite_tags": "お気に入りタグ",
"standalone.public_title": "連合タイムライン",
"status.cannot_reblog": "この投稿はブーストできません",
"status.delete": "削除", |
takayamaki
force-pushed
the
favourite-tags-locale
branch
2 times, most recently
from
August 11, 2017 16:54
d952422
to
3a77bc3
Compare
takayamaki
force-pushed
the
favourite-tags-locale
branch
from
August 11, 2017 17:09
3a77bc3
to
44be465
Compare
lnanase
approved these changes
Aug 15, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
とりあえずja.ymlとen.ymlだけ(ja-IMは逆輸出のために別commitにするつもり
わからんこ(画像略