Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Nov 28, 2024
1 parent 946f5bc commit f1e701f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 59 deletions.
6 changes: 3 additions & 3 deletions app/javascript/mastodon/features/antennas/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const FiltersLink: React.FC<{
<strong>
<FormattedMessage
id='antennas.filter_items'
defaultMessage='Antenna filter settings'
defaultMessage='Move to antenna filter setting'
/>
</strong>
</div>
Expand Down Expand Up @@ -61,7 +61,7 @@ const NewAntenna: React.FC<{
const [withMediaOnly, setWithMediaOnly] = useState(false);
const [ignoreReblog, setIgnoreReblog] = useState(false);
const [mode, setMode] = useState('filtering');
const [destination, setDestination] = useState('home');
const [destination, setDestination] = useState('timeline');
const [submitting, setSubmitting] = useState(false);

useEffect(() => {
Expand Down Expand Up @@ -143,7 +143,7 @@ const NewAntenna: React.FC<{

setMode(value);
},
[setLtl, setStl, setMode, listId, setListId, lists],
[setLtl, setStl, setMode],
);

const handleDestinationChange = useCallback(
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/mastodon/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
"antennas.exclude_domains": "Exclude domains",
"antennas.exclude_keywords": "Exclude keywords",
"antennas.exclude_tags": "Exclude tags",
"antennas.filter_items": "Antenna filter settings",
"antennas.filter_items": "Move to antenna filter setting",
"antennas.filter_not": "Filter Not",
"antennas.find_users_to_add": "Find users to add",
"antennas.ignore_reblog": "Exclude boosts",
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/mastodon/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"antennas.exclude_domains": "除外するドメイン",
"antennas.exclude_keywords": "除外するキーワード",
"antennas.exclude_tags": "除外するタグ",
"antennas.filter_items": "絞り込み条件を設定する",
"antennas.filter_items": "絞り込み条件の設定に移動",
"antennas.filter_not": "絞り込み条件の例外",
"antennas.ignore_reblog": "ブーストを除外",
"antennas.ignore_reblog_hint": "ブーストはアンテナの検出対象から外れます",
Expand Down
27 changes: 0 additions & 27 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1342,21 +1342,11 @@ en:
hint_html: If you want to move from another account to this one, here you can create an alias, which is required before you can proceed with moving followers from the old account to this one. This action by itself is <strong>harmless and reversible</strong>. <strong>The account migration is initiated from the old account</strong>.
remove: Unlink alias
antennas:
contexts:
account: Accounts
domain: Domains
keyword: Keywords
tag: Tags
edit:
available: Available
description: Antenna is for all public and local public posts recognized by the server, from all accounts that have not refused to subscribe. Detected posts will be added to the specified list.
title: Edit antenna
errors:
duplicate_account: Duplicate account
duplicate_domain: Duplicate domain
duplicate_keyword: Duplicate keyword
duplicate_tag: Duplicate tag
empty_contexts: No contexts! You must set any context filters
invalid_list_owner: This list is not yours
limit:
accounts: 登録できるアカウント数の上限に達しています
Expand All @@ -1367,23 +1357,6 @@ en:
over_ltl_limit: You have exceeded the limit of %{limit} ltl antennas
over_stl_limit: You have exceeded the limit of %{limit} stl antennas
too_short_keyword: Keyword is too short
index:
accounts:
other: "%{count} accounts"
contexts: Antennas in %{contexts}
delete: Delete
disabled: Disabled
domains:
other: "%{count} domains"
empty: You have no antennas.
expires_in: Expires in %{distance}
expires_on: Expires on %{date}
keywords:
other: "%{count} keywords"
stl: This antenna is in STL mode, ignoring reject-subscription settings.
tags:
other: "%{count} tags"
title: Antennas
appearance:
advanced_web_interface: Advanced web interface
advanced_web_interface_hint: 'If you want to make use of your entire screen width, the advanced web interface allows you to configure many different columns to see as much information at the same time as you want: Home, notifications, federated timeline, any number of lists and hashtags.'
Expand Down
31 changes: 4 additions & 27 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1322,17 +1322,11 @@ ja:
hint_html: 他のアカウントからこのアカウントにフォロワーを引き継いで引っ越したい場合、ここでエイリアスを作成しておく必要があります。エイリアス自体は<strong>無害で、取り消す</strong>ことができます。<strong>引っ越しは以前のアカウント側から開始する必要があります</strong>。
remove: エイリアスを削除
antennas:
contexts:
account: アカウント
domain: ドメイン
keyword: キーワード
tag: ハッシュタグ
edit:
available: 有効
description: アンテナは、サーバーが認識した全ての公開・ローカル公開投稿のうち、購読を拒否していないすべてのアカウントからの投稿が対象です。検出された投稿は、指定したリストに追加されます。
title: アンテナを編集
errors:
empty_contexts: 絞り込み条件が1つも指定されていないため無効です(除外条件はカウントされません)
duplicate_account: 重複アカウント
duplicate_domain: 重複ドメイン
duplicate_keyword: 重複キーワード
duplicate_tag: 重複タグ
invalid_list_owner: これはあなたのリストではありません
limit:
accounts: 登録できるアカウント数の上限に達しています
Expand All @@ -1343,23 +1337,6 @@ ja:
over_ltl_limit: 所持できるLTLモード付きアンテナ数 (ホーム/リストそれぞれにつき%{limit}) を超えています
over_stl_limit: 所持できるSTLモード付きアンテナ数 (ホーム/リストそれぞれにつき%{limit}) を超えています
too_short_keyword: キーワードが短すぎます
index:
accounts:
other: "%{count}件のアカウント"
contexts: "%{contexts}のアンテナ"
delete: 削除
disabled: 無効
domains:
other: "%{count}件のドメイン"
empty: アンテナはありません。
expires_in: "%{distance}で期限切れ"
expires_on: 有効期限 %{date}
keywords:
other: "%{count}件のキーワード"
stl: STLモードが適用されます。購読拒否設定は無視されます。
tags:
other: "%{count}件のタグ"
title: アンテナ
appearance:
advanced_web_interface: 上級者向けUI
advanced_web_interface_hint: ディスプレイを幅いっぱいまで活用したい場合、上級者向け UI をおすすめします。ホーム、通知、連合タイムライン、更にはリストやハッシュタグなど、様々な異なるカラムから望む限りの情報を一度に受け取れるような設定が可能になります。
Expand Down

0 comments on commit f1e701f

Please sign in to comment.