Skip to content

Commit

Permalink
translate(): shallow doc is translated
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlabo committed Feb 12, 2024
1 parent 8d24a0b commit 99bff15
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 27 deletions.
7 changes: 4 additions & 3 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ title: APIインデックス
import APIList from '@components/page/api/APIList';

<head>
<title>API Index | Ionic Docs API Index for all API Custom Elements</title>
<title>API Index | すべての API カスタム要素の Ionic Docs API Index
</title>
<meta
name="description"
content="Each component in the Ionic Docs API Index consists of one or more custom elements—which each, in turn, may expose methods, events, and CSS custom properties."
content="Ionic Docs API Indexの各コンポーネントは、1つまたは複数のカスタム要素で構成され、それぞれがメソッド、イベント、CSSカスタムプロパティを公開します。"
/>
</head>

Each Ionic [component](/docs/components) consists of one or more [custom elements](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements). Each custom element, in turn, may expose properties, methods, events, and CSS custom properties.
各Ionicの [コンポーネント](/docs/components) は、1つ以上の [カスタム要素](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) から構成されます。各カスタム要素は順番に、プロパティ、メソッド、イベント、およびCSSカスタムプロパティを公開できます。

<APIList sidebar={require('@site/sidebars.js').default} />
2 changes: 1 addition & 1 deletion docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar_label: 概要
<title>Ionic CLI Framework: Command-Line Interface to Develop Apps</title>
<meta
name="description"
content="The Ionic command-line interface (CLI) is the go-to tool for developing Ionic apps. Install our framework globally with npm."
content="Ionicのコマンドラインインターフェイス(CLI)は、Ionicアプリの開発に最適なツールです。npmでフレームワークをグローバルにインストールします。"
/>
</head>

Expand Down
6 changes: 1 addition & 5 deletions docs/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ Ionic アプリは、コンポーネントと呼ばれる高レイヤーの構

<DocsCard header="Card" href="api/card" icon="/icons/component-card-icon.png">
<!-- prettier-ignore -->
<p>Cards are a great way to display an important piece of content, and can contain images, buttons, text, and more.</p>
</DocsCard>

<DocsCard header="Card" href="api/card" icon="/icons/component-card-icon.png">
<p>Cardは重要なコンテンツを表示するのに最適な方法で、画像、ボタン、テキストなどを含めることができます。</p>
</DocsCard>

Expand Down Expand Up @@ -74,7 +70,7 @@ Ionic アプリは、コンポーネントと呼ばれる高レイヤーの構
</DocsCard>

<DocsCard header="Icons" href="api/icon" img="/icons/feature-component-icons-icon.png">
<p>Beautifully designed icons for use in web, iOS, and Android apps.</p>
<p>ウェブ、iOS、Androidアプリで使える美しいデザインのアイコン。</p>
</DocsCard>

<DocsCard header="Grid" href="api/grid" icon="/icons/component-grid-icon.png">
Expand Down
16 changes: 8 additions & 8 deletions docs/native-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ sidebar_label: よくある質問
slug: /native/faq
---

# Frequently Asked Question
#よくある質問

## What is Capacitor?
## Capacitorとは何ですか?

Capacitor is a native runtime built by the Ionic team that offers web developers the ability to deploy their web apps to a native device. Capacitor is also exposing native device capabilities through JavaScript so developers can access features like native location services, filesystem access, or notifications as if they are interacting with any other JavaScript library.
CapacitorはIonicチームによって構築されたネイティブランタイムで、ウェブ開発者にウェブアプリをネイティブデバイスにデプロイする機能を提供します。Capacitorはまた、JavaScriptを通じてネイティブデバイスの機能を公開しているため、開発者は他のJavaScriptライブラリとやりとりしているかのように、ネイティブの位置情報サービス、ファイルシステムへのアクセス、通知などの機能にアクセスできます。

## Permission Issues
## パーミッションの問題

If you're using a plugin, it may require adding additional permissions to your native project after you install the plugin. For instance, the Capacitor Camera plugin requires the following permission for iOS:
プラグインを使用している場合、プラグインをインストールした後にネイティブプロジェクトに追加のパーミッションを追加する必要がある場合があります。例えば、Capacitor CameraプラグインはiOS用に以下のパーミッションが必要です:

- `NSCameraUsageDescription` (`Privacy - Camera Usage Description`)
- `NSPhotoLibraryAddUsageDescription` (`Privacy - Photo Library Additions Usage Description`)
- `NSPhotoLibraryUsageDescription` (`Privacy - Photo Library Usage Description`)

You need to manually add those permissions to the `info.plist` in your native project. Otherwise, calls to the native camera API will fail.
これらのパーミッションをネイティブプロジェクトの `info.plist` に手動で追加する必要があります。そうしないと、ネイティブのカメラAPIの呼び出しに失敗します。

## Unexpected behavior
## 予期せぬ動作

If for some reason the plugin does not behave in a way that is unexpected, please [open an issue on our github repo](https://github.com/ionic-team/capacitor-plugins)! Providing a clear issue report along with a reproduction can help get your issue resolved.
何らかの理由でプラグインが予期しない動作をする場合は、 [github リポジトリに課題を登録してください](https://github.com/ionic-team/capacitor-plugins) !明確なissueレポートと再現例を提供することで、あなたの問題を解決することができます。
14 changes: 7 additions & 7 deletions docs/native-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

<head>
<title>Capacitor Plugins | Capacitor Core Plugins for Ionic Apps</title>
<title>Capacitorプラグイン | Ionicアプリ用のCapacitor Coreプラグイン</title>
<meta
name="description"
content="Capacitor offers a collection APIs that make adding native functionality to your Ionic app as simple as using any JavaScript library."
Expand All @@ -21,23 +21,23 @@ import TabItem from '@theme/TabItem';
`}</style>
</head>

Getting started with Capacitor is fairly straight forward for Ionic developers. Adding plugins to your project is no different than adding any dependencies you may need to a project.
Capacitorを使い始めるのは、Ionic開発者にとってかなり簡単です。プロジェクトにプラグインを追加するのは、プロジェクトに必要な依存関係を追加するのと変わりません。
<intro-end />

## Install
## インストール

To install a plugin, find the plugin you want to use and install it using your package manager, like npm:
プラグインをインストールするには、使いたいプラグインを見つけ、npmなどのパッケージマネージャーを使ってインストールする:

```shell
# Install the Capacitor Plugins
$ npm install @capacitor/camera
```

## Usage
## 使い方

Once installed, plugins can be imported into a component and you can call the native functionality directly from your code.
一度インストールすれば、プラグインをコンポーネントにインポートし、コードから直接ネイティブ機能を呼び出すことができます。

Using the [Camera plugin](native/camera.md) as an example, first install it:
[Camera plugin](native/camera.md)を例にして、まずインストールしてみましょう:

````mdx-code-block
<Tabs
Expand Down
6 changes: 3 additions & 3 deletions docs/native.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import NativeEnterpriseCard from '@components/page/native/NativeEnterpriseCard';

<intro-end />

Add native functionality to your app with Capacitor, a native runtime built by the Ionic team. Install the core packages and easily add them to your project. Capacitor has a wide range of capabilities that developers can use to access features like the device file system, camera, and native location services. All of this is powered by a unified TypeScript API that automatically handles platform differences.
Ionicチームによって構築されたネイティブライブラリ、Capacitorを使ってアプリにネイティブ機能を追加しましょう。コアパッケージをインストールして、プロジェクトに簡単に追加できます。Capacitorには、開発者がデバイスのファイルシステム、カメラ、ネイティブの位置情報サービスなどの機能にアクセスするために使用できる幅広い機能があります。これらはすべて、プラットフォームの違いを自動的に処理する統一されたTypeScript APIによって提供されています。

While the core features of Capacitor are free and open source, some enterprises might find themselves needing more features or custom third-party integrations. If you need such additional features, check out the [Ionic Enterprise SDK](https://ionic.io/enterprise-sdk).
Capacitorのコア機能は無料でオープンソースですが、企業によってはより多くの機能やカスタムサードパーティ統合が必要になるかもしれません。そのような追加機能が必要な場合は、 [Ionic Enterprise SDK](https://ionic.io/enterprise-sdk) をチェックしてください。

<NativeEnterpriseCard />

> Looking for older Cordova plugins? Visit their new home at [Awesome Cordova Plugins.](https://danielsogl.gitbook.io/awesome-cordova-plugins/)
> 古いCordovaプラグインをお探しですか?新しいホーム [Awesome Cordova Plugins.](https://danielsogl.gitbook.io/awesome-cordova-plugins/) をご覧ください。

0 comments on commit 99bff15

Please sign in to comment.