Skip to content

Migration Guide > Filters の翻訳 #134

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

Merged
merged 2 commits into from
Oct 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions src/guide/migration/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ badges:
- removed
---

# Filters <MigrationBadges :badges="$frontmatter.badges" />
# フィルタ <MigrationBadges :badges="$frontmatter.badges" />

## Overview
## 概要

Filters are removed from Vue 3.0 and no longer be supported.
フィルタは Vue 3.0 で削除され、サポートされません。

## 2.x Syntax
## 2.x での構文

In 2.x, developers could use filters in order to apply common text formatting.
2.x で開発者は共通のテキストフォーマットを適用するためにフィルタを使うことができました。

For example:
:

```html
<template>
Expand All @@ -38,13 +38,13 @@ For example:
</script>
```

While this seems like a convenience, it requires a custom syntax that breaks the assumption of expressions inside of curly braces being "just JavaScript," which has both learning and implementation costs.
これは便利に見える一方、括弧の中の式は"ただのJavaScript"になるという前提を崩すカスタム構文が必要であり、学習コストと実装コストの両方がかかります。

## 3.x Update
## 3.x での更新

In 3.x, filters are removed and no longer supported. Instead, we recommend replacing them with method calls or computed properties.
3.x ではフィルタは削除され、サポートされません。代わりに、関数の呼び出しか算出プロパティに置き換えることを推奨します。

Using the example above, here is one example of how it could be implemented.
上記の例を用いて、実装する方法の一例です。

```html
<template>
Expand All @@ -69,6 +69,6 @@ Using the example above, here is one example of how it could be implemented.
</script>
```

## Migration Strategy
## 移行方法

Instead of using filters, we recommend replacing them with computed properties or methods.
フィルタを使う代わりに、算出プロパティか関数に置き換えることを推奨します。