From 7f20c38f19b8334f1c1f927a928df0b0d1f29265 Mon Sep 17 00:00:00 2001 From: J1-takai Date: Thu, 28 Nov 2024 18:35:14 +0900 Subject: [PATCH 01/38] Japanese translation --- src/content/docs/jp/index.mdx | 65 +++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 src/content/docs/jp/index.mdx diff --git a/src/content/docs/jp/index.mdx b/src/content/docs/jp/index.mdx new file mode 100644 index 0000000000..5931235ad2 --- /dev/null +++ b/src/content/docs/jp/index.mdx @@ -0,0 +1,65 @@ +--- +title: Tauri 2.0 +description: 「クロスプラットフォーム・アプリ」構築ツールキット +i18nReady: true +editUrl: false +lastUpdated: false +template: splash +tableOfContents: false +prev: false +next: false +hero: + tagline: 軽量・高速・安全なクロスプラットフォームのアプリケーションを作成 + image: + file: ../../../assets/logo-outline.svg + actions: + - text: さあ、始めよう + link: /jp/start/ + icon: right-arrow + variant: primary + - text: Tauri 1.0 ドキュメント + link: https://v1.tauri.app/jp/ + icon: external + variant: minimal +--- + +import { Card, CardGrid, LinkCard } from '@astrojs/starlight/components'; +import Cta from '@fragments/cta.mdx'; + +
+ +
+
+
+ +
+ + + +
+ + + + 現在の Web 設定をそのまま Tauri で利用する。あるいは夢のプロジェクトを新しく始める。 + Tauri はどのようなフロントエンド技術も利用できるので、現在の設定を変更する必要はありません。 + + + 同じひとつのコードから、Linux 用、macOS 用、Windows 用、Android 用、それに iOS 用の + アプリをすべて構築できます。 + + + フロントエンド部を JavaScript で、アプリケーション・ロジックを Rust で作成し、 + システムの奥深くで Swift と Kotlin を用いて統合します。 + + + 最優先事項と最大の革新を推進する Tauri チームの「第一原則」です。 + + + OS 独自のウェッブ・レンダリング・エンジンを利用することで、Tauri アプリのプログラム・サイズは + わずか「600 KB」ほどにもできます。 + + + 「パフォーマンス」と「セキュリティ」をその中核に持つ Rust は、次世代アプリ向けのプログラミング + 言語です。 + + From 92f0d33eff7d1053410cbd83ba768e1d55ad43e3 Mon Sep 17 00:00:00 2001 From: J1-takai Date: Mon, 2 Dec 2024 22:02:45 +0900 Subject: [PATCH 02/38] Add Japanese Translation --- src/content/docs/jp/start/index.mdx | 54 +++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/content/docs/jp/start/index.mdx diff --git a/src/content/docs/jp/start/index.mdx b/src/content/docs/jp/start/index.mdx new file mode 100644 index 0000000000..83c7a2ef07 --- /dev/null +++ b/src/content/docs/jp/start/index.mdx @@ -0,0 +1,54 @@ +--- +title: Tauri とは? +i18nReady: true +sidebar: + order: 0 +--- + +Tauri は、主要なデスクトップおよびモバイル・プラットフォームのすべてで、軽量・高速なバイナリ・ファイルを構築できるフレームワーク(仕組み)です。フロントエンドには、HTML、JavaScript、CSS にコンパイルされるフレームワークを利用してユーザー・エクスペリエンス(UX)を構築し、バックエンドの処理ロジックには、必要に応じて Rust、Swift、Kotlin などの言語を活用できます。 + +以下のシェル・コマンド(Bash、PowerShell、…)のいずれかを使用して、「Tauri アプリを作成する」[`create-tauri-app`](https://github.com/tauri-apps/create-tauri-app) を始める準備をしましょう。まず「必須事項ガイド」[prerequisites guide](/start/prerequisites/) に従って、Tauri に必要なすべての「依存関係」をインストールし、次に推奨されるフロントエンド構成についての「フロントエンド構成ガイド」[Frontend Configuration guides](/start/frontend/) を参照してください。 + +import Cta from '../_fragments/cta.mdx'; + + + +最初のアプリを作成した後、「機能と使用例のリスト」 [List of Features & Recipes](/plugin/) の章で Tauri のそのほかの機能や使い方を調べることができます。 + +## Tauri の利点 + +Tauri には、プログラム開発者が拠り所とできる三つの大きな利点があります: + +- アプリ構築のための安全なプログラム基盤 +- システム本体の Web ビューを使用することによるでバンドルサイズの軽量化 +- 任意のフロントエンド技術の利用や複数のコンピュータ言語を統合できる柔軟性 + +Tauri の根本思想については、「Tauri 1.0 ブログ [Tauri 1.0 blog post](/blog/tauri-1-0/)」を参照してください。 + +### 安全なプログラム基盤 + +Tauri は、「Rust」を用いて構築されていますので、Rust が提供する「メモリ」「スレッド」「データ・タイプ」の安全性という恩恵を受けています。Tauri で作成されたアプリは、Rust の熟練者でなくても、こうした利点を自動的に享受できます。 + +また、Tauri はメジャーなリリースでもマイナーなリリースでも、安全性の監査を実施しています。この監査には、Tauri 組織内のコードだけではなく、Tauri が依存している上流の依存関係も含まれています。もちろん、これですべてのリスクが緩和される訳ではありませんが、それでも、プログラム開発の拠り所となる強固な基盤となります。 + +詳しくは「Tauri 安全性方針 [Tauri security policy](https://github.com/tauri-apps/tauri/security/policy)」および「Tauri 2.0 監査レポート [Tauri 2.0 audit report](https://github.com/tauri-apps/tauri/blob/dev/audits/Radically_Open_Security-v2-report.pdf)」を御一読ください。 + +### ファイルサイズの軽量化 + +Tauri アプリは、すでにユーザー・システムに搭載されている Web ビューを利用しています。したがって、どの Tauri アプリも、そのアプリに必要なコードとデータ資産のみを含み、アプリ内にブラウザ・エンジンを同梱する必要がありません。このことは、つまり、最小の Tauri アプリは 600 KB 以下のサイズになりうることを意味しています。 + +最適化されたアプリの作成の仕方については、「アプリ・サイズの考え方 [App Size concept](/concept/size/) をご覧ください。 + +### 柔軟性のある基本仕様 + +Tauri は ウェブ技術を利用していますので、事実上どのフロントエンド技術も Tauri と互換性があります。「フロントエンド構成ガイド [Frontend Configuration guide](/start/frontend/) 」では、良く用いられるフロントエンド技術の一般的な構成例を記載しています。 + +JavaScript と Rust 間の結合には、JavaScript の「`invoke`(呼出し)」関数が、Swift や Kotlin との結合には「[Tauri Plugins](/develop/plugins/)(Tauri プラグイン)」が利用できます。 + +[TAO](https://github.com/tauri-apps/tao) は、Tauri のウィンドウ生成を、[WRY](https://github.com/tauri-apps/wry) はウェブ表示のレンダリングを行なうプラグインです。このようなプラグインは Tauri によって管理されているライブラリで、Tauri が対応できる以上の、より進んだシステム統合が必要な場合に直接使用できます。 + +加えて、Tauri には、Tauri 本体が対応できる機能を拡張する多くのプラグインもあります。このようなプラグインは、コミュニティによって提供されているプラグインと並んで、「プラグイン [Plugins section](/plugin/)」のセクションで見つけることができます。 + +

+【※ JP text based on EN Oct 1, 2024】 +

\ No newline at end of file From 0c06f4a237cc1943070e31041ec249f824553bc5 Mon Sep 17 00:00:00 2001 From: J1-takai Date: Mon, 2 Dec 2024 22:06:00 +0900 Subject: [PATCH 03/38] Add Japanese Translation --- src/content/docs/jp/start/prerequisites.mdx | 412 ++++++++++++++++++++ 1 file changed, 412 insertions(+) create mode 100644 src/content/docs/jp/start/prerequisites.mdx diff --git a/src/content/docs/jp/start/prerequisites.mdx b/src/content/docs/jp/start/prerequisites.mdx new file mode 100644 index 0000000000..438b39690e --- /dev/null +++ b/src/content/docs/jp/start/prerequisites.mdx @@ -0,0 +1,412 @@ +--- +title: Prerequisites +i18nReady: true +sidebar: + order: 0 +--- + +import { Tabs, TabItem, Card } from '@astrojs/starlight/components'; + +In order to get started building your project with Tauri you'll first need to install a few dependencies: + +1. [System Dependencies](#system-dependencies) +2. [Rust](#rust) +3. [Configure for Mobile Targets](#configure-for-mobile-targets) (only required if developing for mobile) + +## System Dependencies + +Follow the link to get started for your respective operating system: + +- [Linux](#linux) (see below for specific distributions) +- [macOS Catalina (10.15) and later](#macos) +- [Windows 7 and later](#windows) + +### Linux + +Tauri requires various system dependencies for development on Linux. These may be different depending on your distribution but we've included some popular distributions below to help you get setup. + + + + +```sh +sudo apt update +sudo apt install libwebkit2gtk-4.1-dev \ + build-essential \ + curl \ + wget \ + file \ + libxdo-dev \ + libssl-dev \ + libayatana-appindicator3-dev \ + librsvg2-dev +``` + + + + +```sh +sudo pacman -Syu +sudo pacman -S --needed \ + webkit2gtk-4.1 \ + base-devel \ + curl \ + wget \ + file \ + openssl \ + appmenu-gtk-module \ + libappindicator-gtk3 \ + librsvg +``` + + + + +```sh +sudo dnf check-update +sudo dnf install webkit2gtk4.1-devel \ + openssl-devel \ + curl \ + wget \ + file \ + libappindicator-gtk3-devel \ + librsvg2-devel +sudo dnf group install "c-development" +``` + + + + +```sh +sudo emerge --ask \ + net-libs/webkit-gtk:4.1 \ + dev-libs/libappindicator \ + net-misc/curl \ + net-misc/wget \ + sys-apps/file +``` + + + + +```sh +sudo zypper up +sudo zypper in webkit2gtk3-devel \ + libopenssl-devel \ + curl \ + wget \ + file \ + libappindicator3-1 \ + librsvg-devel +sudo zypper in -t pattern devel_basis +``` + + + +```sh +sudo apk add \ + build-base \ + webkit2gtk \ + curl \ + wget \ + file \ + openssl \ + libayatana-appindicator-dev \ + librsvg +``` + + + +:::note +This will also install Rust and Node.js as well as the `cargo-tauri` CLI for you, so you can skip those steps below. +::: + +Using `nix-shell`: + +```nix +let + pkgs = import { }; +in +pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + pkg-config + gobject-introspection + cargo + cargo-tauri + nodejs + ]; + + buildInputs = with pkgs;[ + at-spi2-atk + atkmm + cairo + gdk-pixbuf + glib + gtk3 + harfbuzz + librsvg + libsoup_3 + pango + webkitgtk_4_1 + openssl + ]; +} +``` + + + + +If your distribution isn't included above then you may want to check [Awesome Tauri on GitHub](https://github.com/tauri-apps/awesome-tauri#guides) to see if a guide has been created. + +Next: [Install Rust](#rust) + +### macOS + +Tauri uses [Xcode](https://developer.apple.com/xcode/resources/) and various macOS and iOS development dependencies. + +Download and install Xcode from one of the following places: + +- [Mac App Store](https://apps.apple.com/gb/app/xcode/id497799835?mt=12) +- [Apple Developer website](https://developer.apple.com/xcode/resources/). + +Be sure to launch Xcode after installing so that it can finish setting up. + +
+Only developing for desktop targets? +If you're only planning to develop desktop apps and not targeting iOS then you can install Xcode Command Line Tools instead: + +```sh +xcode-select --install +``` + +
+ +Next: [Install Rust](#rust) + +### Windows + +Tauri uses the Microsoft C++ Build Tools for development as well as Microsoft Edge WebView2. These are both required for development on Windows. + +Follow the steps below to install the required dependencies. + +#### Microsoft C++ Build Tools + +1. Download the [Microsoft C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/) installer and open it to begin installation. +2. During installation check the "Desktop development with C++" option. + +![Visual Studio C++ Build Tools installer screenshot](@assets/start/prerequisites/visual-studio-build-tools-installer.png) + +Next: [Install WebView2](#webview2). + +#### WebView2 + +:::tip +WebView 2 is already installed on Windows 10 (from version 1803 onward) and later versions of Windows. If you are developing on one of these versions then you can skip this step and go directly to [installing Rust](#rust). +::: + +Tauri uses Microsoft Edge WebView2 to render content on Windows. + +Install WebView2 by visiting the [WebView2 Runtime download section](https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section). Download the "Evergreen Boostrapper" and install it. + +Next: [Install Rust](#rust) + +## Rust + +Tauri is built with [Rust](https://www.rust-lang.org) and requires it for development. Install Rust using one of following methods. You can view more installation methods at https://www.rust-lang.org/tools/install. + + + + +Install via [`rustup`](https://github.com/rust-lang/rustup) using the following command: + +```sh +curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh +``` + +:::tip[Security Tip] +We have audited this bash script, and it does what it says it is supposed to do. Nevertheless, before blindly curl-bashing a script, it is always wise to look at it first. + +Here is the file as a plain script: [rustup.sh](https://sh.rustup.rs/) +::: + + + + +Visit https://www.rust-lang.org/tools/install to install `rustup`. + +Alternatively, you can use `winget` to install rustup using the following command in PowerShell: + +```powershell +winget install --id Rustlang.Rustup +``` + +:::caution[MSVC toolchain as default] + +For full support for Tauri and tools like [`trunk`](https://trunkrs.dev/) make sure the MSVC Rust toolchain is the selected `default host triple` in the installer dialog. Depending on your system it should be either `x86_64-pc-windows-msvc`, `i686-pc-windows-msvc`, or `aarch64-pc-windows-msvc`. + +If you already have Rust installed, you can make sure the correct toolchain is installed by running this command: + +```powershell +rustup default stable-msvc +``` + +::: + + + + +**Be sure to restart your Terminal (and in some cases your system) for the changes to take affect.** + +Next: [Configure for Mobile Targets](#configure-for-mobile-targets) if you'd like to build for Android and iOS, or, if you'd like to use a JavaScript framework, [install Node](#nodejs). Otherwise [Create a Project](/start/create-project/). + +## Node.js + +:::note[JavaScript ecosystem] +Only if you intend to use a JavaScript frontend framework +::: + +1. Go to [Node.js website](https://nodejs.org), download the Long Term Support (LTS) version and install it. + +2. Check if Node was successfully installed by running: + +```sh +node -v +# v20.10.0 +npm -v +# 10.2.3 +``` + +It's important to restart your Terminal to ensure it recognizes the new installation. In some cases, you might need to restart your computer. + +While npm is the default package manager for Node.js, you can also use others like pnpm or yarn. To enable these, run `corepack enable` in your Terminal. This step is optional and only needed if you prefer using a package manager other than npm. + +Next: [Configure for Mobile Targets](#configure-for-mobile-targets) or [Create a project](/start/create-project/). + +## Configure for Mobile Targets + +If you'd like to target your app for Android or iOS then there are a few additional dependencies that you need to install: + +- [Android](#android) +- [iOS](#ios) + +### Android + +1. Download and install [Android Studio from the Android Developers website](https://developer.android.com/studio) +2. Set the `JAVA_HOME` environment variable: + +{/* TODO: Can this be done in the 4th step? */} + + + + +```sh +export JAVA_HOME=/opt/android-studio/jbr +``` + + + + +```sh +export JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home" +``` + + + + +```ps +[System.Environment]::SetEnvironmentVariable("JAVA_HOME", "C:\Program Files\Android\Android Studio\jbr", "User") +``` + + + +3. Use the SDK Manager in Android Studio to install the following: + +- Android SDK Platform +- Android SDK Platform-Tools +- NDK (Side by side) +- Android SDK Build-Tools +- Android SDK Command-line Tools + +Selecting "Show Package Details" in the SDK Manager enables the installation of older package versions. Only install older versions if necessary, as they may introduce compatibility issues or security risks. + +4. Set `ANDROID_HOME` and `NDK_HOME` environment variables. + + + + +```sh +export ANDROID_HOME="$HOME/Android/Sdk" +export NDK_HOME="$ANDROID_HOME/ndk/$(ls -1 $ANDROID_HOME/ndk)" +``` + + + + +```sh +export ANDROID_HOME="$HOME/Library/Android/sdk" +export NDK_HOME="$ANDROID_HOME/ndk/$(ls -1 $ANDROID_HOME/ndk)" +``` + + + + +```ps +[System.Environment]::SetEnvironmentVariable("ANDROID_HOME", "$env:LocalAppData\Android\Sdk", "User") +$VERSION = Get-ChildItem -Name "$env:LocalAppData\Android\Sdk\ndk" +[System.Environment]::SetEnvironmentVariable("NDK_HOME", "$env:LocalAppData\Android\Sdk\ndk\$VERSION", "User") +``` + +:::tip +PowerShell will not pick up the new environment variables until reboot or logout, +However you can refresh the current session: + +````ps +[System.Environment]::GetEnvironmentVariables("User").GetEnumerator() | % { Set-Item -Path "Env:\$($_.key)" -Value $_.value } +::: + + + + + +5. Add the Android targets with `rustup`: + +```sh +rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android +```` + +Next: [Setup for iOS](#ios) or [Create a project](/start/create-project/). + +### iOS + +:::caution[macOS Only] +iOS development requires Xcode and is only available on macOS. Be sure that you've installed Xcode and not Xcode Command Line Tools in the [macOS system dependencies section](#macos). +::: + +1. Add the iOS targets with `rustup` in Terminal: + +```sh +rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim +``` + +2. Install [Homebrew](https://brew.sh): + +```sh +/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" +``` + +3. Install [Cocoapods](https://cocoapods.org) using Homebrew: + +```sh +brew install cocoapods +``` + +Next: [Create a project](/start/create-project/). + +## Troubleshooting + +If you run into any issues during installation be sure to check the [Troubleshooting Guide](/develop/debug/) or reach out on the [Tauri Discord](https://discord.com/invite/tauri). + + + +Now that you've installed all of the prerequisistes you're ready to [create your first Tauri project](/start/create-project/)! + + From 45d02dd5ec292146ce68140b0ba82b0d309b8ffa Mon Sep 17 00:00:00 2001 From: J1-takai Date: Tue, 3 Dec 2024 16:36:14 +0900 Subject: [PATCH 04/38] Add Japanese Translation --- src/content/docs/jp/start/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/jp/start/index.mdx b/src/content/docs/jp/start/index.mdx index 83c7a2ef07..12307cba81 100644 --- a/src/content/docs/jp/start/index.mdx +++ b/src/content/docs/jp/start/index.mdx @@ -43,7 +43,7 @@ Tauri アプリは、すでにユーザー・システムに搭載されてい Tauri は ウェブ技術を利用していますので、事実上どのフロントエンド技術も Tauri と互換性があります。「フロントエンド構成ガイド [Frontend Configuration guide](/start/frontend/) 」では、良く用いられるフロントエンド技術の一般的な構成例を記載しています。 -JavaScript と Rust 間の結合には、JavaScript の「`invoke`(呼出し)」関数が、Swift や Kotlin との結合には「[Tauri Plugins](/develop/plugins/)(Tauri プラグイン)」が利用できます。 +JavaScript 部分と Rust 部分間の結合には、JavaScript の「`invoke`(呼出し)」関数が、Swift や Kotlin との結合には「[Tauri Plugins](/develop/plugins/)(Tauri プラグイン)」が利用できます。 [TAO](https://github.com/tauri-apps/tao) は、Tauri のウィンドウ生成を、[WRY](https://github.com/tauri-apps/wry) はウェブ表示のレンダリングを行なうプラグインです。このようなプラグインは Tauri によって管理されているライブラリで、Tauri が対応できる以上の、より進んだシステム統合が必要な場合に直接使用できます。 From c38075c7988068560348b701de6a87ed757422b6 Mon Sep 17 00:00:00 2001 From: J1-takai Date: Fri, 6 Dec 2024 23:32:16 +0900 Subject: [PATCH 05/38] Add JP translation --- src/content/docs/jp/start/prerequisites.mdx | 140 ++++++++++---------- 1 file changed, 70 insertions(+), 70 deletions(-) diff --git a/src/content/docs/jp/start/prerequisites.mdx b/src/content/docs/jp/start/prerequisites.mdx index 438b39690e..6cdff1d85a 100644 --- a/src/content/docs/jp/start/prerequisites.mdx +++ b/src/content/docs/jp/start/prerequisites.mdx @@ -1,5 +1,5 @@ --- -title: Prerequisites +title: 必要事項 i18nReady: true sidebar: order: 0 @@ -7,23 +7,23 @@ sidebar: import { Tabs, TabItem, Card } from '@astrojs/starlight/components'; -In order to get started building your project with Tauri you'll first need to install a few dependencies: +Tauri でプロジェクトを始めるためには、まずいくつかの依存関係をインストールする必要があります。 -1. [System Dependencies](#system-dependencies) -2. [Rust](#rust) -3. [Configure for Mobile Targets](#configure-for-mobile-targets) (only required if developing for mobile) +1. [OS 別依存関係のインストール](#os-別依存関係のインストール) +2. [Rust のインストール](#rust-のインストール) +3. [モバイル関連の設定](#モバイル関連の設定) (モバイル・アプリを開発する場合にのみ必要) -## System Dependencies +## OS 別依存関係のインストール -Follow the link to get started for your respective operating system: +アプリ開発に使用するオペレーティング・システム(OS)により、各々のリンクに従ってください。 -- [Linux](#linux) (see below for specific distributions) -- [macOS Catalina (10.15) and later](#macos) -- [Windows 7 and later](#windows) +- [Linux](#linux) (特定のディストリビューションについては下記を参照) +- [macOS Catalina (10.15) 以降](#macos) +- [Windows 7 以降](#windows) ### Linux -Tauri requires various system dependencies for development on Linux. These may be different depending on your distribution but we've included some popular distributions below to help you get setup. +Tauri は、Linux 上での開発にさまざまなシステム依存関係を必要とします。システム依存関係はディストリビューションによって異なるかもしれませんが、セットアップの役に立つように、以下にいくつかの一般的なディストリビューションを記載しました。 @@ -117,7 +117,7 @@ sudo apk add \ :::note -This will also install Rust and Node.js as well as the `cargo-tauri` CLI for you, so you can skip those steps below. +この処理では、Rust と Node.js および「`cargo-tauri`」コマンドライン・インターフェース(CLI) のインストールも同時に行なわれますので、以下の作業ステップを省略できます。 ::: Using `nix-shell`: @@ -155,24 +155,24 @@ pkgs.mkShell { -If your distribution isn't included above then you may want to check [Awesome Tauri on GitHub](https://github.com/tauri-apps/awesome-tauri#guides) to see if a guide has been created. +もし、使用しているディストリビューションが上記に含まれていない場合には、[GitHub の Awesome Tauri](https://github.com/tauri-apps/awesome-tauri#guides) のページを参照して、ガイドマニュアルが作成されていないかどうか確認してみてください。 -Next: [Install Rust](#rust) +次のステップ: [Rust のインストール](#rust-のインストール) ### macOS -Tauri uses [Xcode](https://developer.apple.com/xcode/resources/) and various macOS and iOS development dependencies. +Tauri は [Xcode](https://developer.apple.com/xcode/resources/) とさまざまな macOS および iOS の開発関連の依存関係を利用します。 -Download and install Xcode from one of the following places: +次のサイトのいずれかから Xcode をダウンロードしてインストールします。 - [Mac App Store](https://apps.apple.com/gb/app/xcode/id497799835?mt=12) - [Apple Developer website](https://developer.apple.com/xcode/resources/). -Be sure to launch Xcode after installing so that it can finish setting up. +インストール後には、必ず Xcode を起動してセットアップを完了させてください。
-Only developing for desktop targets? -If you're only planning to develop desktop apps and not targeting iOS then you can install Xcode Command Line Tools instead: +デスクトップ・アプリのみを開発する場合は、ここをクリック +もしデスクトップ・アプリのみを開発する予定で、iOS 用アプリを作成しないのであれば、上記の「Xcode」の代わりに、「Xcode コマンドライン・ツール」をインストールすることもできます。 ```sh xcode-select --install @@ -180,70 +180,70 @@ xcode-select --install
-Next: [Install Rust](#rust) +次のステップ: [Rust のインストール](#rust-のインストール) ### Windows -Tauri uses the Microsoft C++ Build Tools for development as well as Microsoft Edge WebView2. These are both required for development on Windows. +Windows での開発には、Tauri は Microsoft の C++ Build Tools と Microsoft Edge WebView2 の両方が必要になります。 -Follow the steps below to install the required dependencies. +次の作業ステップに従って 必要な依存関係をインストールしてください。 #### Microsoft C++ Build Tools -1. Download the [Microsoft C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/) installer and open it to begin installation. -2. During installation check the "Desktop development with C++" option. +1. [Microsoft C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/) インストーラーをダウンロードして開き、インストールを開始します。 +2. インストール時に、「Desktop development with C++」オプションにチェックを入れてください。 ![Visual Studio C++ Build Tools installer screenshot](@assets/start/prerequisites/visual-studio-build-tools-installer.png) -Next: [Install WebView2](#webview2). +次のステップ: [WebView2 のインストール](#webview2-のインストール). -#### WebView2 +#### WebView2 のインストール :::tip -WebView 2 is already installed on Windows 10 (from version 1803 onward) and later versions of Windows. If you are developing on one of these versions then you can skip this step and go directly to [installing Rust](#rust). +Windows 10(バージョン 1803)以降の Windows では、WebView 2 が既にインストール済みです。開発に使用するシステムのバージョンがこれらであれば、このステップを飛ばして、直接 [Rust をインストール](#rust) に進んでください。 ::: -Tauri uses Microsoft Edge WebView2 to render content on Windows. +Tauri は、Windows 上にコンテンツをレンダリングするために Microsoft Edge WebView2 を使用します。 -Install WebView2 by visiting the [WebView2 Runtime download section](https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section). Download the "Evergreen Boostrapper" and install it. +Microsoft の Webview2 ダウンロード・サイト [Download the WebView2 Runtime](https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section) セクションから「Evergreen Boostrapper」ファイルをダウンロードし、インストールしてください。 -Next: [Install Rust](#rust) +次のステップ: [Rust のインストール](#rust-のインストール) -## Rust +## Rust のインストール -Tauri is built with [Rust](https://www.rust-lang.org) and requires it for development. Install Rust using one of following methods. You can view more installation methods at https://www.rust-lang.org/tools/install. +Tauri は [Rust](https://www.rust-lang.org) で作られており、開発にも Rust が必要です。Rust のインストールには、次のいずれかの方法を使用します。その他のインストール方法については、https://www.rust-lang.org/tools/install を参照してください。 - + -Install via [`rustup`](https://github.com/rust-lang/rustup) using the following command: +以下のコマンドを用いて、Rust のバージョン管理ルーツ「 [`rustup`](https://github.com/rust-lang/rustup) 」経由でインストールします: ```sh curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh ``` -:::tip[Security Tip] -We have audited this bash script, and it does what it says it is supposed to do. Nevertheless, before blindly curl-bashing a script, it is always wise to look at it first. +:::tip[安全性のためのヒント] +この bash スクリプトは確認済で、目的どおりの動作をします。とはいえ、スクリプトを盲目的に「curl-bash」コマンドで実行するよりも、常にスクリプトの内容を使用前に確認することが賢明です。 -Here is the file as a plain script: [rustup.sh](https://sh.rustup.rs/) +スクリプトの平文ファイルはこちらです: [rustup.sh](https://sh.rustup.rs/) ::: -Visit https://www.rust-lang.org/tools/install to install `rustup`. +`rustup` をインストールするには、Rust のサイト https://www.rust-lang.org/ja/tools/install を参照してください。 -Alternatively, you can use `winget` to install rustup using the following command in PowerShell: +あるいは、PowerShell で以下のようにコマンドを入力することで、`winget` を使用して rustup をインストールすることもできます: ```powershell winget install --id Rustlang.Rustup ``` -:::caution[MSVC toolchain as default] +:::caution[MSVC toolchain がデフォルト] -For full support for Tauri and tools like [`trunk`](https://trunkrs.dev/) make sure the MSVC Rust toolchain is the selected `default host triple` in the installer dialog. Depending on your system it should be either `x86_64-pc-windows-msvc`, `i686-pc-windows-msvc`, or `aarch64-pc-windows-msvc`. +Tauri と [`trunk`](https://trunkrs.dev/) のようなツールを完全に利用するためには、インストーラーのダイアログで「MSVC Rust ツールチェーン」で `default host triple` が選択されていることを確認してください。使用しているコンピュータ・システムに応じて、`x86_64-pc-windows-msvc`、`i686-pc-windows-msvc`、または `aarch64-pc-windows-msvc` のいずれかになります。 -If you already have Rust installed, you can make sure the correct toolchain is installed by running this command: +すでに Rust をインストール済みの場合には、次のコマンドを実行して、正しい「ツールチェーン」がインストールされているか確認してください: ```powershell rustup default stable-msvc @@ -254,19 +254,19 @@ rustup default stable-msvc -**Be sure to restart your Terminal (and in some cases your system) for the changes to take affect.** +**変更を有効にするために、必ずターミナル (場合によってはシステム本体) を再起動してください。** -Next: [Configure for Mobile Targets](#configure-for-mobile-targets) if you'd like to build for Android and iOS, or, if you'd like to use a JavaScript framework, [install Node](#nodejs). Otherwise [Create a Project](/start/create-project/). +次のステップ: Android および iOS 向けの開発を行なう場合は [モバイル関連の設定](#configure-for-mobile-targets) を、あるいは、JavaScript を使用する場合は [Node のインストール](#nodejs) を実行してください。それ以外の場合は、次章 [プロジェクトの作成](/start/create-project/) に進んでください。 ## Node.js :::note[JavaScript ecosystem] -Only if you intend to use a JavaScript frontend framework +JavaScript をフロントエンドに使用する場合にのみ必要な準備処理です。 ::: -1. Go to [Node.js website](https://nodejs.org), download the Long Term Support (LTS) version and install it. +1. [Node.js website](https://nodejs.org) を開いて LTS 版(長期サポート版)をダウンロードし、インストールしてください。 -2. Check if Node was successfully installed by running: +2. 以下のコマンドを実行して、 Node が正常にインストールされたかどうかを確認します。 ```sh node -v @@ -275,23 +275,23 @@ npm -v # 10.2.3 ``` -It's important to restart your Terminal to ensure it recognizes the new installation. In some cases, you might need to restart your computer. +ターミナルを再起動して、新しくインストールしたプログラムが認識されているか確かめてください。場合によっては、コンピュータを再起動する必要があるかもしれません。 -While npm is the default package manager for Node.js, you can also use others like pnpm or yarn. To enable these, run `corepack enable` in your Terminal. This step is optional and only needed if you prefer using a package manager other than npm. +「npm」が Node.js のデフォルト・パッケージ・マネージャーですが、「pnpm」や「yarn」といった別のパッケージ・マネージャーを使うこともできます。こうしたパッケージ・マネージャーを有効化するには、ターミナルにて `corepack enable` を実行してください。この処理ステップは、「npm」以外のパッケージ・マネージャーを使いたい場合にのみに必要な、任意項目です。 -Next: [Configure for Mobile Targets](#configure-for-mobile-targets) or [Create a project](/start/create-project/). +次のステップ: [モバイル関連の設定](#モバイル関連の設定) または [プロジェクトの作成](/start/create-project/) です。 -## Configure for Mobile Targets +## モバイル関連の設定 -If you'd like to target your app for Android or iOS then there are a few additional dependencies that you need to install: +Android や iOS 向けのアプリ開発を行なう場合には、インストールが必要な追加の依存関係モジュールがいくつかあります: - [Android](#android) - [iOS](#ios) ### Android -1. Download and install [Android Studio from the Android Developers website](https://developer.android.com/studio) -2. Set the `JAVA_HOME` environment variable: +1. Android Developers website から [Android Studio](https://developer.android.com/studio) をダウンロードしてインストールします。 +2. `JAVA_HOME` 環境変数を設定します: {/* TODO: Can this be done in the 4th step? */} @@ -318,7 +318,7 @@ export JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home" -3. Use the SDK Manager in Android Studio to install the following: +3. 「Android Studio」の「SDK Manager」を使って、以下をインストールします: - Android SDK Platform - Android SDK Platform-Tools @@ -326,9 +326,9 @@ export JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home" - Android SDK Build-Tools - Android SDK Command-line Tools -Selecting "Show Package Details" in the SDK Manager enables the installation of older package versions. Only install older versions if necessary, as they may introduce compatibility issues or security risks. +SDK マネージャーで「パッケージの詳細を表示」を選択すると、古いバージョンのパッケージをインストールできるようになります。古いバージョンは**必要な場合にのみ**インストールしてください。互換性の問題やセキュリティ上のリスクが発生する可能性があります。 -4. Set `ANDROID_HOME` and `NDK_HOME` environment variables. +4. `ANDROID_HOME` と `NDK_HOME` の環境変数を設定します。 @@ -356,8 +356,8 @@ $VERSION = Get-ChildItem -Name "$env:LocalAppData\Android\Sdk\ndk" ``` :::tip -PowerShell will not pick up the new environment variables until reboot or logout, -However you can refresh the current session: +PowerShell は、再起動またはログアウトするまで、新しい環境変数の設定が有効になりませんが、 +現在のセッションを更新することはできます: ````ps [System.Environment]::GetEnvironmentVariables("User").GetEnumerator() | % { Set-Item -Path "Env:\$($_.key)" -Value $_.value } @@ -367,46 +367,46 @@ However you can refresh the current session: -5. Add the Android targets with `rustup`: +5. `rustup` で Android を「ターゲット」に追加します: ```sh rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android ```` -Next: [Setup for iOS](#ios) or [Create a project](/start/create-project/). +次のステップ: [iOS 用の設定](#ios) または [プロジェクトの作成](/start/create-project/)。 ### iOS -:::caution[macOS Only] -iOS development requires Xcode and is only available on macOS. Be sure that you've installed Xcode and not Xcode Command Line Tools in the [macOS system dependencies section](#macos). +:::caution[macOS のみ] +iOS 開発の依存関係では Xcode が必要で、macOS 上でのみ利用可能です。上記 [macOS 関連の依存関係設定の説明](#macos) 部分にあるとおり、「Xcode コマンド・ライン・ツール」ではなく、「Xcode」そのものがインストールされていることを確認してください。 ::: -1. Add the iOS targets with `rustup` in Terminal: +1. ターミナルから `rustup` を用いて、iOS を「ターゲット」に追加します: ```sh rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim ``` -2. Install [Homebrew](https://brew.sh): +2. macOS 用パッケージ・マネージャー [Homebrew](https://brew.sh) をインストールします: ```sh /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` -3. Install [Cocoapods](https://cocoapods.org) using Homebrew: +3. Homebrew を用いて、iOS 用ライブラリ管理ツール [Cocoapods](https://cocoapods.org) をインストールします: ```sh brew install cocoapods ``` -Next: [Create a project](/start/create-project/). +次のステップ: [プロジェクトの作成](/start/create-project/). -## Troubleshooting +## 問題が発生したら -If you run into any issues during installation be sure to check the [Troubleshooting Guide](/develop/debug/) or reach out on the [Tauri Discord](https://discord.com/invite/tauri). +インストール中に何か問題が発生したら、「[トラブルシューティングに関する項目](/develop/debug/)」を参照するか、「[Tauri コミュニティー](https://discord.com/invite/tauri)」に問い合わせてみてください。 -Now that you've installed all of the prerequisistes you're ready to [create your first Tauri project](/start/create-project/)! +すべての必要事項をインストールし終えましたので、これで [はじめての Tauri プログラム](/start/create-project/) を作成する準備が整いました! From b6c58ab32c98ee126e73556af3ad0996e000945f Mon Sep 17 00:00:00 2001 From: J1-takai Date: Sat, 7 Dec 2024 14:01:16 +0900 Subject: [PATCH 06/38] amended JP translation --- src/content/docs/jp/start/index.mdx | 2 +- src/content/docs/jp/start/prerequisites.mdx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/content/docs/jp/start/index.mdx b/src/content/docs/jp/start/index.mdx index 12307cba81..aa51486cb5 100644 --- a/src/content/docs/jp/start/index.mdx +++ b/src/content/docs/jp/start/index.mdx @@ -49,6 +49,6 @@ JavaScript 部分と Rust 部分間の結合には、JavaScript の「`invoke` 加えて、Tauri には、Tauri 本体が対応できる機能を拡張する多くのプラグインもあります。このようなプラグインは、コミュニティによって提供されているプラグインと並んで、「プラグイン [Plugins section](/plugin/)」のセクションで見つけることができます。 -

+

【※ JP text based on EN Oct 1, 2024】

\ No newline at end of file diff --git a/src/content/docs/jp/start/prerequisites.mdx b/src/content/docs/jp/start/prerequisites.mdx index 6cdff1d85a..bf2a98d7b2 100644 --- a/src/content/docs/jp/start/prerequisites.mdx +++ b/src/content/docs/jp/start/prerequisites.mdx @@ -410,3 +410,7 @@ brew install cocoapods すべての必要事項をインストールし終えましたので、これで [はじめての Tauri プログラム](/start/create-project/) を作成する準備が整いました! + +

+【※ JP text based on EN Nov 17, 2024】 +

\ No newline at end of file From 79dc0933f41f87d1548954b3c1a4312a8a801b38 Mon Sep 17 00:00:00 2001 From: J1-takai Date: Sun, 8 Dec 2024 22:22:55 +0900 Subject: [PATCH 07/38] Add JP page of create-project.mdx --- src/content/docs/jp/start/create-project.mdx | 225 +++++++++++++++++++ 1 file changed, 225 insertions(+) create mode 100644 src/content/docs/jp/start/create-project.mdx diff --git a/src/content/docs/jp/start/create-project.mdx b/src/content/docs/jp/start/create-project.mdx new file mode 100644 index 0000000000..948b2926a2 --- /dev/null +++ b/src/content/docs/jp/start/create-project.mdx @@ -0,0 +1,225 @@ +--- +title: プロジェクトの作成 +sidebar: + order: 3 +--- + +import { Card, Steps } from '@astrojs/starlight/components'; + +import Cta from '@fragments/cta.mdx'; + +Tauri が非常に柔軟である理由の1つは、事実上どのようなフロントエンド技術(フレームワーク)とも連携できることです。新しい Tauri プロジェクトを作成するための一助として、公式に維持管理されている「ユーティリティ [`create-tauri-app`](https://github.com/tauri-apps/create-tauri-app)」があり、各フロントエンド技術用テンプレートがいくつか用意されています 。 + +`create-tauri-app` には、現在、以下のテンプレートが揃っています: 「vanilla」(HTML、CSS および JavaScript/フレームワークなし)、「[Vue.js](https://vuejs.org)」、「[Svelte](https://svelte.dev)」、「[React](https://reactjs.org/)」、「[SolidJS](https://www.solidjs.com/)」、「[Angular](https://angular.io/)」、「[Preact](https://preactjs.com/)」、「[Yew](https://yew.rs/)」、「[Leptos](https://github.com/leptos-rs/leptos)」、 および「[Sycamore](https://sycamore-rs.netlify.app/)」です。 [Awesome Tauri repo](https://github.com/tauri-apps/awesome-tauri) で見つかるコミュニティー作成のテンプレートやフレームワークも追加利用可能です。 + +{/* TODO: redirect to integrate to existing front-end project specific docs */} +あるいは、下記の「[マニュアル・セットアップ](#マニュアル・セットアップ)」を実行し、Tauri を現在作業中のプロジェクトに追加することで、現行のコードを Tauri アプリに変更できます。 + +## `create-tauri-app` を利用する + +`create-tauri-app` を利用してプロジェクトを開始するには、プロジェクトを始めるフォルダーで、以下のコマンドのいずれかを実行します。どのコマンドを使用するかわからない場合は、Linux および macOS では「Bash」コマンド、Windows では「PowerShell」コマンドの使用をお薦めします。 + + + +画面のプロンプト表示に従って、「プロジェクト名」、「フロントエンド言語」、「パッケージ・マネージャー」、「フロントエンド・フレームワーク」、および(該当する場合は)フロントエンド・フレームワークのオプションを選択します。 + +:::tip[どれを選べばよいのか判りませんか?] + +{/* TODO: redirect to integrate to existing front-end project specific docs */} +はじめての場合には、「vanilla」テンプレート(HTML、CSS、および JavaScript/フレームワークなし)を利用してプロジェクトを開始することをお薦めします。いつでも、後から、[フロントエンドのフレームワークを統合](/start/create-project/) できます。 + +- どの言語をフロントエンドで使用するかを選択: `TypeScript / JavaScript` +- パッケージ・マネージャーを選択: `pnpm` +- ユーザー・インターフェイス(UI)テンプレートを選択: `Vanilla` +- ユーザー・インターフェイス(UI)フレーバーを選択: `TypeScript` + +::: + +#### 新しいプロジェクトを準備する + + + +1. プロジェクトの名前とバンドル識別子(アプリの一意の ID)を選んでください: + ``` + ? Project name (tauri-app) › 《プロジェクト名(tauri-app)》 + ? Identifier (com.tauri-app.app) › 《識別子(com.tauri-app.app)》 + ``` +2. フロントエンドの言語を選んでください: + ``` + ? Choose which language to use for your frontend ›  + 《?プロントエンドにはどの言語を使用しますか: 以下から選択》 + Rust (cargo) + TypeScript / JavaScript (pnpm, yarn, npm, bun) + .NET (dotnet) + ``` +3. パッケージ・マネージャーを選択します(選択肢が複数あれば): + + **TypeScript / JavaScript** の場合の選択肢: + + ``` + ? Choose your package manager › 《パッケージ・マネージャーを選んでください》 + pnpm + yarn + npm + bun + ``` + +4. UI テンプレートとフレーバーを選んでください(選択肢が複数あれば): + + **Rust** の場合の選択肢: + + ``` + ? Choose your UI template › 《UI テンプレートを選んでください》 + Vanilla + Yew + Leptos + Sycamore + ``` + + **TypeScript / JavaScript** の場合の選択肢: + + ``` + ? Choose your UI template › 《UI テンプレートを選んでください》 + Vanilla + Vue + Svelte + React + Solid + Angular + Preact + + ? Choose your UI flavor › 《UI フレーバーを選んでください》 + TypeScript + JavaScript + ``` + + **.NET** の場合の選択肢: + + ``` + ? Choose your UI template › 《UI テンプレートを選んでください》 + Blazor (https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blazor/) + ``` + + + +設定が完了すると、テンプレートが作成され、設定後のパッケージ・マネージャーを使ったそのテンプレートの実行方法を表示します。もしパッケージ・マネージャーがシステム内の依存関係の不備を検出した場合には、パッケージ一覧が出力されて足りないパッケージのインストールが促されます。 + +{/* TODO: Can CTA offer to install the deps? */} + +#### 開発サーバーの起動 + +`create-tauri-app` で設定後、プロジェクト・フォルダーに移動して依存関係をインストールしたら、 [Tauri CLI](/reference/cli/) を使用して開発サーバーを起動します。 + +import CommandTabs from '@components/CommandTabs.astro'; + + + +これで新しいウィンドウが開き、あなたのアプリが実行されます。 + +**おめでとうございます!** Tauri アプリの完成です! 🚀 + +## マニュアル・セットアップ + +すでにプロントエンドができあがっているとか、自分自身で設定を行ないたいとかいう場合には、「Tauri CLI」(コマンドライン・インターフェイス)を用いてそのプロジェクトのバックエンドを個別に初期化できます。 + +:::note +以下の事例では、新しいプロジェクトを始めていることを前提としています。アプリケーションのフロントエンドをすでに初期化している場合は、最初のステップを省略できます。 +::: + + + + 1. プロジェクト用の新しいディレクトリを作成し、フロントエンドを初期化します。通常の HTML、CSS、JavaScript や、Next.js、Nuxt、Svelte、Yew、Leptos などの自分好みのフレームワークを使用できます。必要となるのは、ブラウザにアプリを供給する方法だけです。ほんの一例として、下記はシンプルな Vite フロントエンド・ビルドツールを設定する方法です: + + + + 2. 次に、上記で導入したパッケージ・マネージャーを使用して Tauri の CLI ツールをインストールします。`cargo` を使用して Tauri CLI をインストールする場合には、「グローバル・インストール」する必要があります: + + + + 3. フロントエンド開発サーバーの URL を決定します。これは、Tauri がコンテンツを読み込むために使用する URL のことです。たとえば、Vite を使用している場合、デフォルトの URL は `http://localhost:5173` です。 + + 4. プロジェクト・ディレクトリに戻り、Tauri を初期化します: + + + + 上記のコマンドを実行すると、さまざまな質問項目に対するプロンプトが表示されます: + + ```sh frame=none + ✔ What is your app name? tauri-app 《アプリ名は何ですか?》 + ✔ What should the window title be? tauri-app 《ウィンドウ・タイトルは何にしますか?》 + ✔ Where are your web assets located? .. 《web 関連データはどこに置きますか?》 + ✔ What is the url of your dev server? http://localhost:5173 《開発サーバーの URL は何ですか?》 + ✔ What is your frontend dev command? pnpm run dev 《フロントエンドの開発コマンドは何ですか?》 + ✔ What is your frontend build command? pnpm run build 《フロントエンドのビルド・ + コマンドは何ですか?》 + ``` + + これにより、必要な Tauri 環境設定ファイルを含む `src-tauri` ディレクトリがプロジェクトに作成されます。 + + 5. Tauri アプリが動作していることを確認するために、開発サーバーを実行します: + + + + This command will compile the Rust code and open a window with your web content. + + + +**おめでとうございます!** Tauri CLI を用いて、新しい Tauri プロジェクトができあがりました! 🚀 + +## 次のステップは… + +- [フロントエンドの設定について](/start/frontend/) +- [Tauri コマンドライン・インターフェイスについて](/reference/cli/) +- [Tauri アプリの作り方について](/develop/) +- [Tauri 拡張のための追加機能について](/plugin/) + + +

+【※ JP text based on EN Nov 01, 2024】 +

From 3f32029742405c872a8cda28fbf74a789fd37688 Mon Sep 17 00:00:00 2001 From: J1-takai Date: Mon, 9 Dec 2024 18:50:57 +0900 Subject: [PATCH 08/38] Add JP text for Frontend/index.mdx --- src/content/docs/jp/start/frontend/index.mdx | 61 ++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 src/content/docs/jp/start/frontend/index.mdx diff --git a/src/content/docs/jp/start/frontend/index.mdx b/src/content/docs/jp/start/frontend/index.mdx new file mode 100644 index 0000000000..1ee438c549 --- /dev/null +++ b/src/content/docs/jp/start/frontend/index.mdx @@ -0,0 +1,61 @@ +--- +title: フロントエンドの設定 +i18nReady: true +sidebar: + label: Overview + order: 10 +--- + +import { LinkCard, CardGrid } from '@astrojs/starlight/components'; + +Tauri はフロントエンドに依存せず、ほとんどのフロントエンド・フレームワークをそのまま直ぐに利用できるはずです。とはいえ、フレームワークによっては、Tauri と一体化して動作させるするために、ちょっとした追加設定を必要とするものがあります。以下のリストにあるフレームワークには、推奨される設定値があります。 + +このリストに記載がないフレームワークには、追加設定の必要なしに Tauri で動作するものと、まだ情報がなくリスト化されていないものとがあります。追加設定を必要とするフレームワークがあれば、Tauri コミュニティまでお知らせくださるようお願いいたします。 + +## 設定チェックリスト + +概念的には、Tauri は静的 Web ホストとして機能します。したがって、Tauri の Web ビューで用いられる HTML、CSS、Javascript、および場合によっては WASM のファイルを含むフォルダーを、Tauri に渡す必要があります。 + +以下は、フロントエンドを Tauri と統合するために必要な、一般的なシナリオのチェックリストです。 + +{/* TODO: Link to core concept of SSG/SSR, etc. */} +{/* TODO: Link to mobile development server guide */} +{/* TODO: Concept of how to do a client-server relationship? */} + +- 「静的サイト生成(SSG)」、「シングルページアプリケーション(SPA)」、または昔ながらの「マルチページアプリケーション(MPA)」を使用します。Tauri は、「サーバーサイドレンダリング(SSR)」のようなサーバー・ベースの代替方式には対応していません。 +- モバイル・アプリ開発では、自身の内部 IP 上にフロントエンドをホストできる何らかの開発サーバーが必要です。 +- アプリと API との間は適切なクライアント/サーバー関係を使用します(SSR を併用したハイブリッド・ソリューションは使用しないでください)。 + +## JavaScript + +{/* TODO: Help me with the wording here lol */} + +ほとんどのプロジェクトでは、React、Vue、Svelte、Solid などの SPA フレームワークだけでなく、通常の JavaScript または TypeScript プロジェクトにも、[Vite](https://vitejs.dev/) をお勧めします。ここに記載されている他のガイドのほとんどには、メタ・フレームワークの使用方法が示されています。メタ・フレームワークは通常 SSR 用に設計されているため、特別な設定が必要です。 + + + + + + + + + +## Rust + + + + + + +
+ +:::tip[リストにフレームワークが見つからない?] + +目的のフレームワークがリストに載っていない? それは、追加設定不要で Tauri で動作するフレームワークだからかもしれません。一般的な設定については、[設定チェックリスト](/start/frontend/#設定チェックリスト)の項を参照してください。 + +::: + + +

+【※ JP text based on EN Oct 01, 2024】 +

From 783305852d63dbb3f76ece8eea266c5dcb5b990a Mon Sep 17 00:00:00 2001 From: J1-takai Date: Tue, 17 Dec 2024 18:46:38 +0900 Subject: [PATCH 09/38] Add JP translation to Frontend --- src/content/docs/jp/start/frontend/leptos.mdx | 61 ++++++++ src/content/docs/jp/start/frontend/nextjs.mdx | 135 ++++++++++++++++ src/content/docs/jp/start/frontend/nuxt.mdx | 121 +++++++++++++++ src/content/docs/jp/start/frontend/qwik.mdx | 146 ++++++++++++++++++ .../docs/jp/start/frontend/sveltekit.mdx | 140 +++++++++++++++++ src/content/docs/jp/start/frontend/trunk.mdx | 55 +++++++ src/content/docs/jp/start/frontend/vite.mdx | 141 +++++++++++++++++ 7 files changed, 799 insertions(+) create mode 100644 src/content/docs/jp/start/frontend/leptos.mdx create mode 100644 src/content/docs/jp/start/frontend/nextjs.mdx create mode 100644 src/content/docs/jp/start/frontend/nuxt.mdx create mode 100644 src/content/docs/jp/start/frontend/qwik.mdx create mode 100644 src/content/docs/jp/start/frontend/sveltekit.mdx create mode 100644 src/content/docs/jp/start/frontend/trunk.mdx create mode 100644 src/content/docs/jp/start/frontend/vite.mdx diff --git a/src/content/docs/jp/start/frontend/leptos.mdx b/src/content/docs/jp/start/frontend/leptos.mdx new file mode 100644 index 0000000000..787ffc38d0 --- /dev/null +++ b/src/content/docs/jp/start/frontend/leptos.mdx @@ -0,0 +1,61 @@ +--- +title: Leptos +tableOfContents: + minHeadingLevel: 2 + maxHeadingLevel: 5 +--- + +import { Tabs, TabItem, Steps } from '@astrojs/starlight/components'; +import CommandTabs from '@components/CommandTabs.astro'; + +Leptos は、Rustを基盤としたウェブ・フレームワークです。より詳しい Leptos の説明は、[公式ウェッブ・サイト【英語版】](https://leptos.dev/) をご覧ください。以下の説明内容は、「Leptos バージョン 0.6」に準拠しています。  + +## チェック項目 + +- 「SSG(静的サイト生成)」を使用してください。Tauri は公式にはサーバー・ベースの方式には対応していません。 +- `serve.ws_protocol = "ws"` を使用してください。モバイル開発で、「ホット・リロード・ウェッブソケット」が適切に接続されるようになります。 +- `withGlobalTauri` を有効化してください。Tauri API が `window.__TAURI__` 変数内で利用できるようになり、`wasm-bindgen` を使用してインポート可能になります。 + +## 設定例 + + + +1. ##### Tauri の設定をアップデート + + ```json + // src-tauri/tauri.conf.json + { + "build": { + "beforeDevCommand": "trunk serve", + "devUrl": "http://localhost:1420", + "beforeBuildCommand": "trunk build", + "frontendDist": "../dist" + }, + "app": { + "withGlobalTauri": true + } + } + ``` + +1. ##### Trunk の設定をアップデート + + ```toml + // Trunk.toml + [build] + target = "./index.html" + + [watch] + ignore = ["./src-tauri"] + + [serve] + port = 1420 + open = false + ws_protocol = "ws" + + ``` + + + +

+【※ JP text based on EN Oct 01, 2024】 +

diff --git a/src/content/docs/jp/start/frontend/nextjs.mdx b/src/content/docs/jp/start/frontend/nextjs.mdx new file mode 100644 index 0000000000..3670a5eae2 --- /dev/null +++ b/src/content/docs/jp/start/frontend/nextjs.mdx @@ -0,0 +1,135 @@ +--- +title: Next.js +i18nReady: true +tableOfContents: + collapseLevel: 1 + minHeadingLevel: 2 + maxHeadingLevel: 5 +--- + +import { Tabs, TabItem, Steps } from '@astrojs/starlight/components'; +import CommandTabs from '@components/CommandTabs.astro'; + +Next.js は React 用のメタ・フレームワークです。Next.js の詳細については、https://nextjs.org ををご覧ください。以下の説明内容は、「Next.js 14.2.3 バージョン」に準拠しています。 + +## チェック項目 + +- `output: 'export'` を設定して「静的エクスポート」を使用してください。Tauri はサーバー・ベースの方式には対応していません。 +- `tauri.conf.json` の `frontendDist` に「`out`」ディレクトリを使用してください。 + +## 設定例 + + + +1. ##### Tauri の設定をアップデート + + + + + + ```json + // src-tauri/tauri.conf.json + { + "build": { + "beforeDevCommand": "npm run dev", + "beforeBuildCommand": "npm run build", + "devUrl": "http://localhost:3000", + "frontendDist": "../out" + } + } + ``` + + + + + + ```json + // src-tauri/tauri.conf.json + { + "build": { + "beforeDevCommand": "yarn dev", + "beforeBuildCommand": "yarn build", + "devUrl": "http://localhost:3000", + "frontendDist": "../out" + } + } + ``` + + + + + + ```json + // src-tauri/tauri.conf.json + { + "build": { + "beforeDevCommand": "pnpm dev", + "beforeBuildCommand": "pnpm build", + "devUrl": "http://localhost:3000", + "frontendDist": "../out" + } + } + ``` + + + + + + ```json + // src-tauri/tauri.conf.json + { + "build": { + "beforeDevCommand": "deno task dev", + "beforeBuildCommand": "deno task build", + "devUrl": "http://localhost:3000", + "frontendDist": "../out" + } + } + ``` + + + + + +2. ##### Next.js の設定をアップデート + + ```ts + // next.conf.mjs + const isProd = process.env.NODE_ENV === 'production'; + + const internalHost = process.env.TAURI_DEV_HOST || 'localhost'; + + /** @type {import('next').NextConfig} */ + const nextConfig = { + // Next.js が「SSR(サーバーサイドレンダリング」ではなく「SSG(静的サイト生成)」を使用していること。 + // https://nextjs.org/docs/pages/building-your-application/deploying/static-exports + output: 'export', + // 注: この機能は、SSG モードで Next.js イメージ・コンポーネントを使用するために必要です。 + // 別の回避方法については https://nextjs.org/docs/messages/export-image-api を参照してください。 + images: { + unoptimized: true, + }, + // assetPrefix を設定してください。さもないとサーバーはアセットを適切に解決できません。 + assetPrefix: isProd ? undefined : `http://${internalHost}:3000`, + }; + + export default nextConfig; + ``` + +3. ##### package.json の設定をアップデート + + ```json + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start", + "lint": "next lint", + "tauri": "tauri" + } + ``` + + + +

+【※ JP text based on EN Nov 01, 2024】 +

diff --git a/src/content/docs/jp/start/frontend/nuxt.mdx b/src/content/docs/jp/start/frontend/nuxt.mdx new file mode 100644 index 0000000000..caaffbc963 --- /dev/null +++ b/src/content/docs/jp/start/frontend/nuxt.mdx @@ -0,0 +1,121 @@ +--- +title: Nuxt +i18nReady: true +tableOfContents: + minHeadingLevel: 2 + maxHeadingLevel: 5 +--- + +import { Tabs, TabItem, Steps } from '@astrojs/starlight/components'; + +Nuxt は Vue 用のメタ・フレームワークです。Nuxt の詳細については、https://nuxt.com をご覧ください。以下の説明内容は、「Nuxt 3.11. バージョン」に準拠しています。 + +## チェック項目 + +- `ssr: false` を設定して SSG を使用してください。Tauri はサーバー・ベースの方式には対応していません。 +- iOS の物理デバイス上で動作するように設定されている場合、開発サーバーのホスト IP に `process.env.TAURI_DEV_HOST` を使用してください。 +- `tauri.conf.json` では `frontendDist` として `dist/` を指定します。 +- `nuxi generate` を使用してコンパイルします。 +- (任意設定項目) `nuxt.config.ts` で `telemetry: false` と設定して、テレメトリを無効にします。 + +## 設定例 + + + +1. ##### Tauri の設定をアップデート + + + + + + ```json + // tauri.conf.json + { + "build": { + "beforeDevCommand": "npm run dev", + "beforeBuildCommand": "npm run generate", + "devUrl": "http://localhost:3000", + "frontendDist": "../dist" + } + } + ``` + + + + + ```json + // tauri.conf.json + { + "build": { + "beforeDevCommand": "yarn dev", + "beforeBuildCommand": "yarn generate", + "devUrl": "http://localhost:3000", + "frontendDist": "../dist" + } + } + ``` + + + + + ```json + // tauri.conf.json + { + "build": { + "beforeDevCommand": "pnpm dev", + "beforeBuildCommand": "pnpm generate", + "devUrl": "http://localhost:3000", + "frontendDist": "../dist" + } + } + ``` + + + + + ```json + // tauri.conf.json + { + "build": { + "beforeDevCommand": "deno task dev", + "beforeBuildCommand": "deno task generate", + "devUrl": "http://localhost:3000", + "frontendDist": "../dist" + } + } + ``` + + + + + +1. ##### Nuxt の設定をアップデート + + ```ts + export default defineNuxtConfig({ + //(任意)「Nuxt devtools」を有効化します + devtools: { enabled: true }, + //「SSG」を有効化します + ssr: false, + // iOS の物理デバイス上で動作しているときに他のデバイスから開発サーバーを検出可能にします + devServer: { host: process.env.TAURI_DEV_HOST || 'localhost' }, + vite: { + // Tauri CLI 出力のサポート強化 + clearScreen: false, + // 環境変数の有効化 + // さらなる環境変数は次のサイトで見ることができます + // https://v2.tauri.app/reference/environment-variables/ + envPrefix: ['VITE_', 'TAURI_'], + server: { + // Tauri は一貫性のあるポートを必要とします + strictPort: true, + }, + }, + }); + ``` + + + +

+【※ JP text based on EN Nov 01, 2024】 +

diff --git a/src/content/docs/jp/start/frontend/qwik.mdx b/src/content/docs/jp/start/frontend/qwik.mdx new file mode 100644 index 0000000000..61b28e8986 --- /dev/null +++ b/src/content/docs/jp/start/frontend/qwik.mdx @@ -0,0 +1,146 @@ +--- +title: Qwik +i18nReady: true +tableOfContents: + minHeadingLevel: 2 + maxHeadingLevel: 5 +--- + +import { Steps, TabItem, Tabs } from '@astrojs/starlight/components'; +import CommandTabs from '@components/CommandTabs.astro'; + +ここでは、「Qwik ウェッブ・フレームワーク」を用いた Tauri アプリの作成を順に説明していきます。Qwik の詳細については、公式サイト https://qwik.dev をご覧ください。 + +## チェック項目 + +- [SSG](https://qwik.dev/docs/guides/static-site-generation/) を使用してください。Tauri はサーバー・ベースの方式には対応していません。 +- `tauri.conf.json` では `frontendDist` として `dist/` を指定します。 + +## 設定例 + + + +1. ##### 新しい Qwik アプリを開始します + + `} + yarn={`yarn create qwik@latest + cd `} + pnpm={`pnpm create qwik@latest + cd `} + deno={`deno run -A npm:create-qwik@latest + cd `} + /> + +1. ##### `static adapter` をインストールします + + + +1. ##### 「Tauri CLI」をあなたのプロジェクトに追加します + + + +1. ##### 新しい Tauri プロジェクトを初期化します + + + +1. ##### Tauri の設定 + + + + + + ```json + // tauri.conf.json + { + "build": { + "devUrl": "http://localhost:5173" + "frontendDist": "../dist", + "beforeDevCommand": "npm run dev", + "beforeBuildCommand": "npm run build" + } + } + ``` + + + + + + ```json + // tauri.conf.json + { + "build": { + "devUrl": "http://localhost:5173" + "frontendDist": "../dist", + "beforeDevCommand": "yarn dev", + "beforeBuildCommand": "yarn build" + } + } + ``` + + + + + + ```json + // tauri.conf.json + { + "build": { + "devUrl": "http://localhost:5173" + "frontendDist": "../dist", + "beforeDevCommand": "pnpm dev", + "beforeBuildCommand": "pnpm build" + } + } + ``` + + + + + + ```json + // tauri.conf.json + { + "build": { + "devUrl": "http://localhost:5173" + "frontendDist": "../dist", + "beforeDevCommand": "deno task dev", + "beforeBuildCommand": "deno task build" + } + } + ``` + + + + + +1. ##### `tauri` アプリを開始 + + + + + +

+【※ JP text based on EN Nov 01, 2024】 +

diff --git a/src/content/docs/jp/start/frontend/sveltekit.mdx b/src/content/docs/jp/start/frontend/sveltekit.mdx new file mode 100644 index 0000000000..dba9ed11eb --- /dev/null +++ b/src/content/docs/jp/start/frontend/sveltekit.mdx @@ -0,0 +1,140 @@ +--- +title: SvelteKit +i18nReady: true +tableOfContents: + minHeadingLevel: 2 + maxHeadingLevel: 5 +--- + +import { Tabs, TabItem, Steps } from '@astrojs/starlight/components'; +import CommandTabs from '@components/CommandTabs.astro'; + +SvelteKit は Svelte 用のメタ・フレームワークです。SvelteKit の詳細は「公式サイト https://kit.svelte.dev/」をご覧ください。以下の説明内容は「SvelteKit 2.5.7 / Svelte 4.2.15」に準拠しています。 + +## チェック項目 + +- `static-adapter` 経由で [SSG](https://kit.svelte.dev/docs/adapter-static) および/または [SPA](https://kit.svelte.dev/docs/single-page-apps) を使用してください。Tauri はサーバー・ベースの方式には対応していません。 +- `tauri.conf.json` では `frontendDist` として `dist/` を指定します。 + +## 設定例 + + + +1. ##### `@sveltejs/adapter-static` のインストール + + + +1. ##### Tauri の設定アップデート + + + + + + ```json + // tauri.conf.json + { + "build": { + "beforeDevCommand": "npm run dev", + "beforeBuildCommand": "npm run build", + "devUrl": "http://localhost:5173", + "frontendDist": "../build" + } + } + ``` + + + + + + ```json + // tauri.conf.json + { + "build": { + "beforeDevCommand": "yarn dev", + "beforeBuildCommand": "yarn build", + "devUrl": "http://localhost:5173", + "frontendDist": "../build" + } + } + ``` + + + + + + ```json + // tauri.conf.json + { + "build": { + "beforeDevCommand": "pnpm dev", + "beforeBuildCommand": "pnpm build", + "devUrl": "http://localhost:5173", + "frontendDist": "../build" + } + } + ``` + + + + + + ```json + // tauri.conf.json + { + "build": { + "beforeDevCommand": "deno task dev", + "beforeBuildCommand": "deno task build", + "devUrl": "http://localhost:5173", + "frontendDist": "../build" + } + } + ``` + + + + + +1. ##### SvelteKit の設定アップデート + + ```js title="svelte.config.js" {1} + import adapter from '@sveltejs/adapter-static'; + import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; + + /** @type {import('@sveltejs/kit').Config} */ + const config = { + // 前処理系の詳細については、公式サイト + // https://kit.svelte.dev/docs/integrations#preprocessors を参照してください + preprocess: vitePreprocess(), + + kit: { + adapter: adapter(), + }, + }; + + export default config; + ``` + +1. ##### 「SSR」の無効化 + + 最後に、「SSR」を無効化し、以下の内容を含む「ルート `+layout.ts` ファイル」(TypeScript を使用していない場合は `+layout.js`)を追加して、事前レンダリングを有効化する必要があります: + + ```ts + // src/routes/+layout.ts + export const prerender = true; + export const ssr = false; + ``` + + `static-adapter` は、アプリ全体に対して「SSR を無効化」することを求めているわけではありませんが、そうすることで、(Tauri の API のような)グローバル・ウィンドウ・オブジェクトに依存する API を [クライアント側のチェック](https://kit.svelte.dev/docs/faq#how-do-i-use-x-with-sveltekit-how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window) なしで使用できるようになります。《リンク先は、Svelte 公式サイトの FQA ページ(英語版)です》 + + さらにいえば、「SSG」よりも「シングルページ・アプリケーション (SPA)」モードを好む場合は、[アダプタ関連ドキュメント](https://kit.svelte.dev/docs/single-page-apps) 《英語版ページ》に従ってアダプタ設定と `+layout.ts` を変更できます。 + + + +

+【※ JP text based on EN Nov 01, 2024】 +

diff --git a/src/content/docs/jp/start/frontend/trunk.mdx b/src/content/docs/jp/start/frontend/trunk.mdx new file mode 100644 index 0000000000..d7d8638797 --- /dev/null +++ b/src/content/docs/jp/start/frontend/trunk.mdx @@ -0,0 +1,55 @@ +--- +title: Trunk +i18nReady: true +tableOfContents: + minHeadingLevel: 2 + maxHeadingLevel: 5 +--- + +import { Tabs, TabItem, Steps } from '@astrojs/starlight/components'; + +Trunk は Rust 用の WASM Web アプリ・バンドラーです。より詳しい説明は、公式サイト https://trunkrs.dev をご覧ください。以下の説明内容は、「Trunk バージョン 0.17.5」に準拠しています。  + +## チェック項目 + +- 「SSG(静的サイト生成)」を使用してください。Tauri は公式にはサーバー・ベースの方式には対応していません。 +- `serve.ws_protocol = "ws"` を使用してください。モバイル開発で、「ホット・リロード・ウェッブソケット」が適切に接続されるようになります。 +- `withGlobalTauri` を有効化してください。Tauri API が `window.__TAURI__` 変数内で利用できるようになり、`wasm-bindgen` を使用してインポート可能になります。 + +## 設定例 + + + +1. ##### Tauri の設定をアップデート + + ```json + // tauri.conf.json + { + "build": { + "beforeDevCommand": "trunk serve", + "beforeBuildCommand": "trunk build", + "devUrl": "http://localhost:8080", + "frontendDist": "../dist" + }, + "app": { + "withGlobalTauri": true + } + } + ``` + +1. ##### Trunk の設定をアップデート + + ```toml + # Trunk.toml + [watch] + ignore = ["./src-tauri"] + + [serve] + ws_protocol = "ws" + ``` + + + +

+【※ JP text based on EN Oct 01, 2024】 +

diff --git a/src/content/docs/jp/start/frontend/vite.mdx b/src/content/docs/jp/start/frontend/vite.mdx new file mode 100644 index 0000000000..cf38b9c508 --- /dev/null +++ b/src/content/docs/jp/start/frontend/vite.mdx @@ -0,0 +1,141 @@ +--- +title: Vite +tableOfContents: + minHeadingLevel: 2 + maxHeadingLevel: 5 +--- + +import { Tabs, TabItem, Steps } from '@astrojs/starlight/components'; + +Vite(ヴィート)は、 最新の Web プロジェクトで、より高速で無駄のない開発体験が得られることを目指したビルド・ツールです。以下の説明内容は、「Vite バージョン 5.4.8」に準拠しています。  + +## チェック項目 + +- `tauri.conf.json` では `frontendDist` として `dist/` を指定します。 +- iOS の物理デバイス上で動作するように設定されている場合、開発サーバーのホスト IP に `process.env.TAURI_DEV_HOST` を使用してください。 + +## 設定例 + + + +1. ##### Tauri の設定をアップデート + + `package.json` の中に次の `dev` および `build` スクリプト設定があると仮定します: + + ```json + { + "scripts": { + "dev": "vite dev", + "build": "vite build" + } + } + ``` + + Vite 開発サーバーと dist フォルダーをフック機能(関数)とともに使用して、Vite スクリプトを自動的に実行するように Tauri CLI を設定できます。 + + + + + + ```json + // tauri.conf.json + { + "build": { + "beforeDevCommand": "npm run dev", + "beforeBuildCommand": "npm run build", + "devUrl": "http://localhost:5173", + "frontendDist": "../dist" + } + } + ``` + + + + + + ```json + // tauri.conf.json + { + "build": { + "beforeDevCommand": "yarn dev", + "beforeBuildCommand": "yarn build", + "devUrl": "http://localhost:5173", + "frontendDist": "../dist" + } + } + ``` + + + + + + ```json + // tauri.conf.json + { + "build": { + "beforeDevCommand": "pnpm dev", + "beforeBuildCommand": "pnpm build", + "devUrl": "http://localhost:5173", + "frontendDist": "../dist" + } + } + ``` + + + + + + ```json + // tauri.conf.json + { + "build": { + "beforeDevCommand": "deno task dev", + "beforeBuildCommand": "deno task build", + "devUrl": "http://localhost:5173", + "frontendDist": "../dist" + } + } + ``` + + + + + +1. ##### Vite の設定をアップデート + + ```js title="vite.config.js" + import { defineConfig } from 'vite'; + + const host = process.env.TAURI_DEV_HOST; + + export default defineConfig({ + // Vite が Rust のエラーを不明瞭にするのを防止します + clearScreen: false, + server: { + // Tauri は固定ポートで動作しているので、そのポートが見つからない場合機能しません + strictPort: true, + // Tauri が要求しているホストが設定されている場合は、それを使用します + host: host || false, + port: 5173, + }, + // `envPrefix` の項目で始まる環境変数は `import.meta.env` を通じて Tauri のソース・コードから参照できます + envPrefix: ['VITE_', 'TAURI_ENV_*'], + build: { + // Tauriは、Windows では Chromium を、macOS と Linux では WebKit を使用しています + target: + process.env.TAURI_ENV_PLATFORM == 'windows' + ? 'chrome105' + : 'safari13', + // デバッグ・ビルドでは「ファイルの軽量化(ミニファイ)」をさせない + minify: !process.env.TAURI_ENV_DEBUG ? 'esbuild' : false, + // デバッグ・ビルドで「SourceMap」を作成します + sourcemap: !!process.env.TAURI_ENV_DEBUG, + }, + }); + ``` + + + +

+【※ JP text based on EN Nov 01, 2024】 +

From 67fc45e90fe590b77a1fccc0454e49cfa068ff48 Mon Sep 17 00:00:00 2001 From: J1-takai Date: Mon, 30 Dec 2024 23:06:09 +0900 Subject: [PATCH 10/38] i18n (ja-JP): Added JP translation --- .../docs/jp/start/migrate/from-tauri-1.mdx | 1205 +++++++++++++++++ .../jp/start/migrate/from-tauri-2-beta.mdx | 156 +++ src/content/docs/jp/start/migrate/index.mdx | 27 + 3 files changed, 1388 insertions(+) create mode 100644 src/content/docs/jp/start/migrate/from-tauri-1.mdx create mode 100644 src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx create mode 100644 src/content/docs/jp/start/migrate/index.mdx diff --git a/src/content/docs/jp/start/migrate/from-tauri-1.mdx b/src/content/docs/jp/start/migrate/from-tauri-1.mdx new file mode 100644 index 0000000000..b24a7e8ec7 --- /dev/null +++ b/src/content/docs/jp/start/migrate/from-tauri-1.mdx @@ -0,0 +1,1205 @@ +--- +title: Tauri 1.0 からのアップグレード +i18nReady: true +sidebar: + order: 15 +--- + +import { Tabs, TabItem } from '@astrojs/starlight/components'; +import CommandTabs from '@components/CommandTabs.astro'; + +ここでは、Tauri 1.0 アプリケーションを Tauri 2.0 にアップグレードする手順を説明します。 + +## モバイル向けの準備 + +Tauri のモバイル・インターフェイスは、そのプロジェクトが共有ライブラリを出力するようにしなければなりません。既存のアプリケーションをモバイル向けに変更する場合には、デスクトップ実行可能ファイルとともにそのようなライブラリ・ファイルを生成するようにクレートを変更する必要があります。 + +1. ライブラリを生成するために Cargo マニフェストを変更します。以下のブロックを追加します: + +```toml +// src-tauri/Cargo.toml +[lib] +name = "app_lib" +crate-type = ["staticlib", "cdylib", "rlib"] +``` + +2. `src-tauri/src/main.rs` の部分を `src-tauri/src/lib.rs` に変更します。このファイルは、デスクトップ版とモバイル版の両方で共有されます。 + +3. `lib.rs` にある `main` 関数ヘッダーの名前を次のように変更します: + +```rust +// src-tauri/src/lib.rs +#[cfg_attr(mobile, tauri::mobile_entry_point)] +pub fn run() { + // ここに、あなたのコードを書きます +} +``` + +`tauri::mobile_entry_point` マクロは、あなたが作成した関数をモバイルで実行できるように準備するものです。 + +4. 共用実行関数を呼び出す `main.rs` ファイルを再作成します。 + +```rust +// src-tauri/src/main.rs +#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] + +fn main() { + app_lib::run(); +} +``` + +## 自動移行 + +Tauri v2 CLI には、移行作業の大部分を自動化する `migrate` コマンドが含まれており、移行完了に役立ちます。 + + + +`migrate` コマンドの詳細については、[コマンドライン・インターフェース・リファレンス](/reference/cli/#migrate) を参照してください。 + +## 変更の概要 + +Tauri 1.0 から Tauri 2.0 への変更内容の概要は以下のとおりです: + +### Tauri の設定 + +- `package > productName` と `package > version` をトップレベル・オブジェクトへ移動。 +- バイナリ名が自動的には `productName` と一致するように変更されなくなったため、`productName` と一致するトップレベル・オブジェクトに `mainBinaryName` 文字列を追加する必要があります。 +- `package` を削除。 +- `tauri` key を `app` に改称。 +- `tauri > allowlist` を削除。[許可の移行](#許可の移行) を参照。 +- `tauri > allowlist > protocol > assetScope` を `app > security > assetProtocol > scope` へ移動。 +- `tauri > cli` を `plugins > cli` へ移動。 +- `tauri > windows > fileDropEnabled` を `app > windows > dragDropEnabled` に改称。 +- `tauri > updater > active` を削除。 +- `tauri > updater > dialog` を削除。 +- `tauri > updater` を `plugins > updater` へ移動。 +- `bundle > createUpdaterArtifacts` を追加。アプリ・アップデーターを使用する場合には設定する必要があります。 + - すでに配布されている v1 アプリをアップグレードする場合は、これを `v1compatible` に設定してください。詳しくは [アップデーター・ガイド](/plugin/updater/) を参照してください。 +- `tauri > systemTray` を `app > trayIcon` に改称。 +- `tauri > pattern` を `app > security > pattern` へ移動。 +- `tauri > bundle` をトップレベルへ移動。 +- `tauri > bundle > identifier` をトップレベル・オブジェクトへ移動。 +- `tauri > bundle > dmg` を `bundle > macOS > dmg` へ移動。 +- `tauri > bundle > deb` を `bundle > linux > deb` へ移動。 +- `tauri > bundle > appimage` を `bundle > linux > appimage` へ移動。 +- `tauri > bundle > macOS > license` を削除。代わりに `bundle > licenseFile` を使用して下さい。 +- `tauri > bundle > windows > wix > license` を削除。代わりに `bundle > licenseFile` を使用して下さい。 +- `tauri > bundle > windows > nsis > license` を削除。代わりに `bundle > licenseFile` を使用して下さい。 +- `tauri > bundle > windows > webviewFixedRuntimePath` を削除。代わりに `bundle > windows > webviewInstallMode` を使用して下さい。 +- `build > withGlobalTauri` を `app > withGlobalTauri` へ移動。 +- `build > distDir` を `frontendDist` に改称。 +- `build > devPath` を `devUrl` に改称。 + +[Tauri 2.0 設定 API レファレンス](/reference/config/) + +### Cargo の新機能 + +- linux-protocol-body: カスタム・プロトコル・リクエストのボディ部解析を有効化し、IPC(プロセス間通信)での利用を許可します。「webkit2gtk 2.40」が必要です。 + +### 削除された Cargo 機能 + +- reqwest-client: 現時点で「reqwest」のみが有効なクライアントです。 +- reqwest-native-tls-vendored: 代わりに `native-tls-vendored` を使用して下さい。 +- process-command-api: 代わりに `shell` プラグインを使用して下さい(以下の項目で使用法を確認してください)。 +- shell-open-api: 代わりに `shell` プラグインを使用して下さい(以下の項目で使用法を確認してください)。 +- windows7-compat: `notification` プラグインへ移動。 +- updater: 「Updater(アップデーター)」は現在プラグインになっています。 +- linux-protocol-headers: 「webkit2gtk」最小化版をアップグレードし、デフォルトで有効化されるようになりました。 +- system-tray: `tray-icon` に改称。 + +### Rust クレートの変更点 + +- `api` モジュールは削除されました。各 API モジュールは、「Tauri プラグイン」にある移行先を参照してください。 +- `api::dialog` モジュールは削除されました。代わりに `tauri-plugin-dialog` を使用して下さい。 [移行先](#migrate-to-dialog-plugin) +- `api::file` モジュールは削除されました。代わりに、Rust の [`std::fs`](https://doc.rust-lang.org/std/fs/) を使用して下さい。 +- `api::http` モジュールは削除されました。代わりに `tauri-plugin-http` を使用して下さい。 [移行先](#migrate-to-http-plugin) +- `api::ip` モジュールは書き直され、`tauri::ipc` に移動しました。新しい API群、特に `tauri::ipc::Channel` を確認してください。 +- `api::path` モジュール機能と `tauri::PathResolved` は `tauri::Manager::path` へ移動しました。 [移行先](#migrate-path-to-tauri-manager) +- `api::process::Command`、`tauri::api::shell` および `tauri::Manager::shell_scope` の各 API は削除されました。代わりに `tauri-plugin-shell` を使用してください。 [移行先](#migrate-to-shell-plugin) +- `api::process::current_binary` および `tauri::api::process::restart` は `tauri::process` へ移動しました。 +- `api::version` モジュールは削除されました。代わりに [semver crate](https://docs.rs/semver/latest/semver/) を使用して下さい。 +- `App::clipboard_manager` および `AppHandle::clipboard_manager` は削除されました。代わりに `tauri-plugin-clipboard` を使用してください。 [移行先](#migrate-to-clipboard-plugin) +- `App::get_cli_matches` は削除されました。代わりに `tauri-plugin-cli` を使用して下さい。 [移行先](#migrate-to-cli-plugin) +- `App::global_shortcut_manager` および `AppHandle::global_shortcut_manager` は削除されました。代わりに `tauri-plugin-global-shortcut` を使用して下さい。 [移行先](#migrate-to-global-shortcut-plugin) +- `Manager::fs_scope` は削除されました。「ファイル・システム・スコープ」は `tauri_plugin_fs::FsExt` 経由でアクセス可能です。 +- `Plugin::PluginApi` は、プラグイン設定を2番目の引数として受け取るようになりました。 +- `Plugin::setup_with_config` は削除されました。代わりに最新の `tauri::Plugin::PluginApi` を使用して下さい。 +- `scope::ipc::RemoteDomainAccessScope::enable_tauri_api` および `scope::ipc::RemoteDomainAccessScope::enables_tauri_api` は削除されました。代わりに `scope::ipc::RemoteDomainAccessScope::add_plugin` 経由で各コア・プラグインを個々に有効化してください。 +- `scope::IpcScope` は削除されました。代わりに `scope::ipc::Scope` を使用してください。 +- `scope::FsScope`、`scope::GlobPattern` および `scope::FsScopeEvent` は削除されました。それぞれ、`scope::fs::Scope`、`scope::fs::Pattern` および `scope::fs::Event` を使用して下さい。 +- `updater` モジュールは削除されました。代わりに `tauri-plugin-updater` を使用して下さい。[移行先](#migrate-to-updater-plugin) +- `Env.args` フィールドは削除されました。代わりに `Env.args_os` フィールドを使用して下さい。 +- `Menu`、`MenuEvent`、`CustomMenuItem`、`Submenu`、`WindowMenuEvent`、`MenuItem` および `Builder::on_menu_event` の各 API は削除されました。[移行先](#migrate-to-menu) +- `SystemTray`、`SystemTrayHandle`、`SystemTrayMenu`、`SystemTrayMenuItemHandle`、`SystemTraySubmenu`、`MenuEntry` および `SystemTrayMenuItem` の各 API は削除されました。[移行先](#migrate-to-tray-icon-module) + +### JavaScript API の変更点 + +`@tauri-apps/api` パッケージは、コア以外のモジュールを提供しなくなりました。これまでの `tauri` (現行では `core`)、`path`、`event`、`window` の各モジュールのみがエクスポートされます。その他はすべてプラグインに移動されました。 + +- `@tauri-apps/api/tauri` モジュールは `@tauri-apps/api/core` に改称されました。[移行先](#migrate-to-core-module) +- `@tauri-apps/api/cli` モジュールは削除されました。代わりに `@tauri-apps/plugin-cli` を使用して下さい。[移行先](#migrate-to-cli-plugin) +- `@tauri-apps/api/clipboard` モジュールは削除されました。代わりに `@tauri-apps/plugin-clipboard` を使用して下さい。[移行先](#migrate-to-clipboard-plugin) +- `@tauri-apps/api/dialog` モジュールは削除されました。代わりに `@tauri-apps/plugin-dialog` を使用して下さい。[移行先](#migrate-to-dialog-plugin) +- `@tauri-apps/api/fs` モジュールは削除されました。代わりに `@tauri-apps/plugin-fs` を使用して下さい。[移行先](#migrate-to-file-system-plugin) +- `@tauri-apps/api/global-shortcut` モジュールは削除されました。代わりに `@tauri-apps/plugin-global-shortcut` を使用して下さい。[移行先](#migrate-to-global-shortcut-plugin) +- `@tauri-apps/api/http` モジュールは削除されました。代わりに `@tauri-apps/plugin-http` を使用してください。[移行先](#migrate-to-http-plugin) +- `@tauri-apps/api/os` モジュールは削除されました。代わりに `@tauri-apps/plugin-os` を使用して下さい。[移行先](#migrate-to-os-plugin) +- `@tauri-apps/api/notification` モジュールは削除されました。代わりに `@tauri-apps/plugin-notification` を使用して下さい。[移行先](#migrate-to-notification-plugin) +- `@tauri-apps/api/process` モジュールは削除されました。代わりに `@tauri-apps/plugin-process` を使用して下さい。[移行先](#migrate-to-process-plugin) +- `@tauri-apps/api/shell` モジュールは削除されました。代わりに `@tauri-apps/plugin-shell` を使用して下さい。[移行先](#migrate-to-shell-plugin) +- `@tauri-apps/api/updater` モジュールは削除されました。代わりに `@tauri-apps/plugin-updater` を使用してください。[移行先](#migrate-to-updater-plugin) +- `@tauri-apps/api/window` モジュールは `@tauri-apps/api/webviewWindow` に改称されました。[移行先](#migrate-to-new-window-api) + +バージョン 1 のプラグインは、`@tauri-apps/plugin-` として公開されています。これは、以前には git から `tauri-plugin--api` として入手可能だったものです。 + +### 環境変数の変更点 + +Tauri CLI によって読み書きされる環境変数のほとんどは、整合性と間違い防止のために名称が変更されました: + +- `TAURI_PRIVATE_KEY` -> `TAURI_SIGNING_PRIVATE_KEY` +- `TAURI_KEY_PASSWORD` -> `TAURI_SIGNING_PRIVATE_KEY_PASSWORD` +- `TAURI_SKIP_DEVSERVER_CHECK` -> `TAURI_CLI_NO_DEV_SERVER_WAIT` +- `TAURI_DEV_SERVER_PORT` -> `TAURI_CLI_PORT` +- `TAURI_PATH_DEPTH` -> `TAURI_CLI_CONFIG_DEPTH` +- `TAURI_FIPS_COMPLIANT` -> `TAURI_BUNDLER_WIX_FIPS_COMPLIANT` +- `TAURI_DEV_WATCHER_IGNORE_FILE` -> `TAURI_CLI_WATCHER_IGNORE_FILENAME` +- `TAURI_TRAY` -> `TAURI_LINUX_AYATANA_APPINDICATOR` +- `TAURI_APPLE_DEVELOPMENT_TEAM` -> `APPLE_DEVELOPMENT_TEAM` +- `TAURI_PLATFORM` -> `TAURI_ENV_PLATFORM` +- `TAURI_ARCH` -> `TAURI_ENV_ARCH` +- `TAURI_FAMILY` -> `TAURI_ENV_FAMILY` +- `TAURI_PLATFORM_VERSION` -> `TAURI_ENV_PLATFORM_VERSION` +- `TAURI_PLATFORM_TYPE` -> `TAURI_ENV_PLATFORM_TYPE` +- `TAURI_DEBUG` -> `TAURI_ENV_DEBUG` + +### イベント・システム + +「イベント・システム」は、より使いやすくなるように再設計されました。イベント・ソースにではなく、イベント・ターゲットに依拠する、より簡潔な実装になっています。 + +- `emit` 機能は、すべてのイベント・リスナーにイベントを発するようになりました。 +- 特定のターゲットにイベントを発生させる、新しい `emit_to` 機能を追加しました。 +- `emit_filter` は、ウィンドウではなく、[`EventTarget`](https://docs.rs/tauri/2.0.0/tauri/event/enum.EventTarget.html) に基づいてフィルタリングするようになりました。 +- `listen_global` を `listen_any` に改称。フィルターやターゲットに関係なく、すべてのイベントの応答を待機するようになりました。 + +### マルチウェッブビューのサポート + +Tauri バージョン 2 では、現在、`unstable` 機能フラグの下に置かれている「マルチウェッブビュー multiwebview」へのサポートが導入されました。 +この機能を導入するため、Rust の `Window` 型を `WebviewWindow` へ、Manager の `get_window` 機能を `get_webview_window` へ、それぞれ改称しました。 + +`WebviewWindow` JS API タイプは、`@tauri-apps/api/window` ではなく、`@tauri-apps/api/webviewWindow` から再エクスポートされるようになりました。 + +### Windows での新しい配信元 URL + +Windows では、本番公開アプリのフロントエンド・ファイルは、`https://tauri.localhost` ではなく `http://tauri.localhost` でホストされるようになりました。このため、バージョン 1 で `dangerousUseHttpScheme` が使用されていない限り、「IndexedDB」、「LocalStorage」、および 「Cookies」はリセットされます。これを防ぐには、`app > windows > useHttpsScheme` を `true` に設定するか、`WebviewWindowBuilder::use_https_scheme` を使用して `https` 方式を引き続き使用してください。 + +## 移行手順の詳細 + +Tauri 1.0 アプリを Tauri 2.0 に移行する場合に発生する可能性のある一般的な流れです。 + +### コア・モジュールの移行 + +`@tauri-apps/api/tauri` モジュールは、 `@tauri-apps/api/core` に改称されています。 +ここでの作業は、モジュール・インポート時の名称を変更するだけです: + +```diff +- import { invoke } from "@tauri-apps/api/tauri" ++ import { invoke } from "@tauri-apps/api/core" +``` + +### CLI プラグインの移行 + +Rust の `App::get_cli_matches` および JavaScript の `@tauri-apps/api/cli` API削除されました。代わりにプラグインの `@tauri-apps/plugin-cli` を使用して下さい: + +1. Cargo に依存関係を追加します: + +```toml +# Cargo.toml +[dependencies] +tauri-plugin-cli = "2" +``` + +2. JavaScript または Rust のプロジェクトで使用します: + + + + +```rust +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_cli::init()) +} +``` + +```json +// package.json +{ + "dependencies": { + "@tauri-apps/plugin-cli": "^2.0.0" + } +} +``` + +```javascript +import { getMatches } from '@tauri-apps/plugin-cli'; +const matches = await getMatches(); +``` + + + + +```rust +fn main() { + use tauri_plugin_cli::CliExt; + tauri::Builder::default() + .plugin(tauri_plugin_cli::init()) + .setup(|app| { + let cli_matches = app.cli().matches()?; + Ok(()) + }) +} +``` + + + + +### Clipboard プラグインの移行 + +Rust の `App::clipboard_manager` と `AppHandle::clipboard_manager`、および JavaScript の `@tauri-apps/api/clipboard` API は削除されました。代わりに `@tauri-apps/plugin-clipboard-manager` プラグインを使用して下さい: + +```toml +[dependencies] +tauri-plugin-clipboard-manager = "2" +``` + + + + +```rust +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_clipboard_manager::init()) +} +``` + +```json +// package.json +{ + "dependencies": { + "@tauri-apps/plugin-clipboard-manager": "^2.0.0" + } +} +``` + +```javascript +import { writeText, readText } from '@tauri-apps/plugin-clipboard-manager'; +await writeText('Tauri is awesome!'); +assert(await readText(), 'Tauri is awesome!'); +``` + + + + +```rust +use tauri_plugin_clipboard::{ClipboardExt, ClipKind}; +tauri::Builder::default() + .plugin(tauri_plugin_clipboard::init()) + .setup(|app| { + app.clipboard().write(ClipKind::PlainText { + label: None, + text: "Tauri is awesome!".into(), + })?; + Ok(()) + }) +``` + + + + +### Dialog プラグインの移行 + +Rust の `tauri::api::dialog` および JavaScript の `@tauri-apps/api/dialog` API は削除されました。代わりに `@tauri-apps/plugin-dialog` プラグインを使用してください: + +1. Cargo へ依存関係を追加します: + +```toml +# Cargo.toml +[dependencies] +tauri-plugin-dialog = "2" +``` + +2. JavaScript または Rust のプロジェクトで使用します: + + + + +```rust +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_dialog::init()) +} +``` + +```json +// package.json +{ + "dependencies": { + "@tauri-apps/plugin-dialog": "^2.0.0" + } +} +``` + +```javascript +import { save } from '@tauri-apps/plugin-dialog'; +const filePath = await save({ + filters: [ + { + name: 'Image', + extensions: ['png', 'jpeg'], + }, + ], +}); +``` + + + + +```rust +use tauri_plugin_dialog::DialogExt; +tauri::Builder::default() + .plugin(tauri_plugin_dialog::init()) + .setup(|app| { + app.dialog().file().pick_file(|file_path| { + // do something with the optional file path here + // the file path is `None` if the user closed the dialog + }); + + app.dialog().message("Tauri is Awesome!").show(); + Ok(()) + }) +``` + + + + +### File System プラグインの移行 + +Rust の `App::get_cli_matches` および `@tauri-apps/api/fs` API は削除されました。代わりに、Rust には [`std::fs`](https://doc.rust-lang.org/std/fs/) を、JavaScript には `@tauri-apps/plugin-fs` プラグインを使用してください: + +1. Cargo へ依存関係を追加します: + +```toml +# Cargo.toml +[dependencies] +tauri-plugin-fs = "2" +``` + +2. JavaScript または Rust のプロジェクトで使用します: + + + + +```rust +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_fs::init()) +} +``` + +```json +// package.json +{ + "dependencies": { + "@tauri-apps/plugin-fs": "^2.0.0" + } +} +``` + +```javascript +import { mkdir, BaseDirectory } from '@tauri-apps/plugin-fs'; +await mkdir('db', { baseDir: BaseDirectory.AppLocalData }); +``` + +いくつかの関数と型が改称または削除されています: + +- `Dir` enum エイリアス(列挙型・別名)は削除されました。 `BaseDirectory` を使用して下さい。 +- `FileEntry`、`FsBinaryFileOption`、`FsDirOptions`、`FsOptions`、`FsTextFileOption`、および `BinaryFileContents` のインターフェースと型エイリアスは削除され、各関数に適した新しいインターフェースに置き換えられました。 +- `createDir` は `mkdir` に改称されました。 +- `readBinaryFile` は `readFile` に改称されました。 +- `removeDir` は削除され、`remove` に置き換えられました。 +- `removeFile` は削除され、`remove` に置き換えられました。 +- `renameFile` は削除され、`rename` に置き換えられました。 +- `writeBinaryFile` は `writeFile` に改称されました。 + + + + +Rust の [`std::fs`](https://doc.rust-lang.org/std/fs/) 関数を使用して下さい。 + + + + +### Global Shortcut プラグインの移行 + +Rust の `App::global_shortcut_manager` と `AppHandle::global_shortcut_manager` および JavaScript の `@tauri-apps/api/global-shortcut` API は削除されました。代わりに `@tauri-apps/plugin-global-shortcut` プラグインを使用して下さい: + +1. Cargo へ依存関係を追加します: + +```toml +# Cargo.toml +[dependencies] +[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies] +tauri-plugin-global-shortcut = "2" +``` + +2. JavaScript または Rust のプロジェクトで使用します: + + + + +```rust +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_global_shortcut::Builder::default().build()) +} +``` + +```json +// package.json +{ + "dependencies": { + "@tauri-apps/plugin-global-shortcut": "^2.0.0" + } +} +``` + +```javascript +import { register } from '@tauri-apps/plugin-global-shortcut'; +await register('CommandOrControl+Shift+C', () => { + console.log('Shortcut triggered'); +}); +``` + + + + +```rust +use tauri_plugin_global_shortcut::GlobalShortcutExt; + +tauri::Builder::default() + .plugin( + tauri_plugin_global_shortcut::Builder::new().with_handler(|app, shortcut| { + println!("Shortcut triggered: {:?}", shortcut); + }) + .build(), + ) + .setup(|app| { + // register a global shortcut + // on macOS, the Cmd key is used + // on Windows and Linux, the Ctrl key is used + app.global_shortcut().register("CmdOrCtrl+Y")?; + Ok(()) + }) +``` + + + + +### HTTP プラグインの移行 + +Rust の `tauri::api::http` および JavaScript の `@tauri-apps/api/http` API は削除されました。代わりに `@tauri-apps/plugin-http` プラグイン を使用して下さい。 + +1. Cargo へ依存関係を追加します: + +```toml +# Cargo.toml +[dependencies] +tauri-plugin-http = "2" +``` + +2. JavaScript または Rust のプロジェクトで使用します: + + + + +```rust +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_http::init()) +} +``` + +```json +// package.json +{ + "dependencies": { + "@tauri-apps/plugin-http": "^2.0.0" + } +} +``` + +```javascript +import { fetch } from '@tauri-apps/plugin-http'; +const response = await fetch( + 'https://raw.githubusercontent.com/tauri-apps/tauri/dev/package.json' +); +``` + + + + +```rust +use tauri_plugin_http::reqwest; + +tauri::Builder::default() + .plugin(tauri_plugin_http::init()) + .setup(|app| { + let response_data = tauri::async_runtime::block_on(async { + let response = reqwest::get( + "https://raw.githubusercontent.com/tauri-apps/tauri/dev/package.json", + ) + .await + .unwrap(); + response.text().await + })?; + Ok(()) + }) +``` + +HTTP プラグインは [reqwest](https://docs.rs/reqwest/latest/reqwest/) を再エクスポートします。詳細については「reqwest」のドキュメントを確認して下さい。 + + + + +### Notification プラグインの移行 + +Rust の `tauri::api::notification` および JavaScript の `@tauri-apps/api/notification` API は削除されました。代わりに `@tauri-apps/plugin-notification` プラグインを使用して下さい: + +1. Cargo へ依存関係を追加します: + +```toml +# Cargo.toml +[dependencies] +tauri-plugin-notification = "2" +``` + +2. JavaScript または Rust のプロジェクトで使用します: + + + + +```rust +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_notification::init()) +} +``` + +```json +// package.json +{ + "dependencies": { + "@tauri-apps/plugin-notification": "^2.0.0" + } +} +``` + +```javascript +import { sendNotification } from '@tauri-apps/plugin-notification'; +sendNotification('Tauri is awesome!'); +``` + + + + +```rust +use tauri_plugin_notification::NotificationExt; +use tauri::plugin::PermissionState; + +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_notification::init()) + .setup(|app| { + if app.notification().permission_state()? == PermissionState::Unknown { + app.notification().request_permission()?; + } + if app.notification().permission_state()? == PermissionState::Granted { + app.notification() + .builder() + .body("Tauri is awesome!") + .show()?; + } + Ok(()) + }) +} +``` + + + + +### Menu モジュールの移行 + +Rust の `Menu` API は `tauri::menu` モジュールに移動され、[muda クレート](https://github.com/tauri-apps/muda) を使用するようにリファクタリング(最適化)されました。 + +#### `tauri::menu::MenuBuilder` の使用 + +`tauri::Menu` ではなく、`tauri::menu::MenuBuilder` を使用して下さい。このコンストラクターは、引数として Manager インスタンス(`App`、`AppHandle`、`WebviewWindow` のいずれか)を受け取ることに注意してください。 + +```rust +use tauri::menu::MenuBuilder; + +tauri::Builder::default() + .setup(|app| { + let menu = MenuBuilder::new(app) + .copy() + .paste() + .separator() + .undo() + .redo() + .text("open-url", "Open URL") + .check("toggle", "Toggle") + .icon("show-app", "Show App", app.default_window_icon().cloned().unwrap()) + .build()?; + Ok(()) + }) +``` + +#### `tauri::menu::PredefinedMenuItem` の使用 + +`tauri::MenuItem` ではなく、`tauri::menu::PredefinedMenuItem` を使用して下さい。 + +```rust +use tauri::menu::{MenuBuilder, PredefinedMenuItem}; + +tauri::Builder::default() + .setup(|app| { + let menu = MenuBuilder::new(app).item(&PredefinedMenuItem::copy(app)?).build()?; + Ok(()) + }) +``` + +:::tip +メニュー・ビルダーには、定義済みメニュー項目を追加可能な専用メソッドが用意されているため、`.item(&PredefinedMenuItem::copy(app, None)?)` の代わりに `.copy()` を呼び出すことができます。 +::: + +#### `tauri::menu::MenuItemBuilder` の使用 + +`tauri::CustomMenuItem` の代わりに `tauri::menu::MenuItemBuilder` を使用します: + +```rust +use tauri::menu::MenuItemBuilder; + +tauri::Builder::default() + .setup(|app| { + let toggle = MenuItemBuilder::new("Toggle").accelerator("Ctrl+Shift+T").build(app)?; + Ok(()) + }) +``` + +#### `tauri::menu::SubmenuBuilder` の使用 + +`tauri::Submenu` の代わりに `tauri::menu::SubmenuBuilder` を使用します: + +```rust +use tauri::menu::{MenuBuilder, SubmenuBuilder}; + +tauri::Builder::default() + .setup(|app| { + let submenu = SubmenuBuilder::new(app, "Sub") + .text("Tauri") + .separator() + .check("Is Awesome") + .build()?; + let menu = MenuBuilder::new(app).item(&submenu).build()?; + Ok(()) + }) +``` + +`tauri::Builder::menu` は、メニューを構築するために Manager インスタンスが必要であるため、クロージャを受け取るようになりました。詳しくは、[ドキュメント(関連文書)](https://docs.rs/tauri/2.0.0/tauri/struct.Builder.html#method.menu) を参照して下さい。 + +#### Menu Events(メニュー・イベント) + +Rust の `tauri::Builder::on_menu_event` API は削除されました。代わりに `tauri::App::on_menu_event` または `tauri::AppHandle::on_menu_event` を使用して下さい: + +```rust +use tauri::menu::{CheckMenuItemBuilder, MenuBuilder, MenuItemBuilder}; + +tauri::Builder::default() + .setup(|app| { + let toggle = MenuItemBuilder::with_id("toggle", "Toggle").build(app)?; + let check = CheckMenuItemBuilder::new("Mark").build(app)?; + let menu = MenuBuilder::new(app).items(&[&toggle, &check]).build()?; + + app.set_menu(menu)?; + + app.on_menu_event(move |app, event| { + if event.id() == check.id() { + println!("`check` triggered, do something! is checked? {}", check.is_checked().unwrap()); + } else if event.id() == "toggle" { + println!("toggle triggered!"); + } + }); + Ok(()) + }) +``` + +注意: どのメニュー項目が選択されたのかを確認する方法には二通りあります。ひとつは「項目」をイベント・ハンドラー・クロージャーに移動して ID を比較するやりかた、もうひとつは「項目」を `with_id` コンストラクターを通してカスタム ID を定義し、その ID 文字列を用いて比較するやりかたです。ご注意下さい。 + +:::tip +メニュー項目はメニュー間で共有でき、メニュー・イベントは、メニューやウィンドウではなく、メニュー項目にバインドされます。 +メニュー項目が選択された際にすべてのリスナーがトリガーされないようにしたい場合には、メニュー項目を共有せず、代わりに専用のインスタンスを使用してください。これにより、`tauri::WebviewWindow/WebviewWindowBuilder::on_menu_event` クロージャーに移動できます。 +::: + +### OS プラグインの移行 + +Rust の `tauri::api::os` および JavaScript の `@tauri-apps/api/os` API は削除されました。代わりに `@tauri-apps/plugin-os` プラグインを使用して下さい: + +1. Cargo へ依存関係を追加します: + +```toml +# Cargo.toml +[dependencies] +tauri-plugin-os = "2" +``` + +2. JavaScript または Rust のプロジェクトで使用します: + + + + +```rust +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_os::init()) +} +``` + +```json +// package.json +{ + "dependencies": { + "@tauri-apps/plugin-os": "^2.0.0" + } +} +``` + +```javascript +import { arch } from '@tauri-apps/plugin-os'; +const architecture = await arch(); +``` + + + + +```rust +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_os::init()) + .setup(|app| { + let os_arch = tauri_plugin_os::arch(); + Ok(()) + }) +} +``` + + + + +### Process プラグインの移行 + +Rust の `tauri::api::process` および JavaScript の `@tauri-apps/api/process` API は削除されました。代わりに `@tauri-apps/plugin-process` プラグイン を使用して下さい: + +1. Cargo へ依存関係を追加します: + +```toml +# Cargo.toml +[dependencies] +tauri-plugin-process = "2" +``` + +2. JavaScript または Rust のプロジェクトで使用します: + + + + +```rust +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_process::init()) +} +``` + +```json +// package.json +{ + "dependencies": { + "@tauri-apps/plugin-process": "^2.0.0" + } +} +``` + +```javascript +import { exit, relaunch } from '@tauri-apps/plugin-process'; +await exit(0); +await relaunch(); +``` + + + + +```rust +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_process::init()) + .setup(|app| { + // exit the app with a status code + app.handle().exit(1); + // restart the app + app.handle().restart(); + Ok(()) + }) +} +``` + + + + +### Shell プラグインの移行 + +Rust の `tauri::api::shell` および JavaScript の `@tauri-apps/api/shell` API は削除されました。代わりに `@tauri-apps/plugin-shell` プラグインを使用して下さい: + +1. Cargo へ依存関係を追加します: + +```toml +# Cargo.toml +[dependencies] +tauri-plugin-shell = "2" +``` + +2. JavaScript または Rust のプロジェクトで使用します: + + + + +```rust +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_shell::init()) +} +``` + +```json +// package.json +{ + "dependencies": { + "@tauri-apps/plugin-shell": "^2.0.0" + } +} +``` + +```javascript +import { Command, open } from '@tauri-apps/plugin-shell'; +const output = await Command.create('echo', 'message').execute(); + +await open('https://github.com/tauri-apps/tauri'); +``` + + + + +- URL を開きます。 + +```rust +use tauri_plugin_shell::ShellExt; + +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_shell::init()) + .setup(|app| { + app.shell().open("https://github.com/tauri-apps/tauri", None)?; + Ok(()) + }) +} +``` + +- 子プロセスを生成し、ステータス・コードを取得します。 + +```rust +use tauri_plugin_shell::ShellExt; + +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_shell::init()) + .setup(|app| { + let status = tauri::async_runtime::block_on(async move { app.shell().command("which").args(["ls"]).status().await.unwrap() }); + println!("`which` finished with status: {:?}", status.code()); + Ok(()) + }) +} +``` + +- 子プロセスを生成し、その出力をキャプチャーします。 + +```rust +use tauri_plugin_shell::ShellExt; + +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_shell::init()) + .setup(|app| { + let output = tauri::async_runtime::block_on(async move { app.shell().command("echo").args(["TAURI"]).output().await.unwrap() }); + assert!(output.status.success()); + assert_eq!(String::from_utf8(output.stdout).unwrap(), "TAURI"); + Ok(()) + }) +} +``` + +- 子プロセスを生成し、そのイベントを非同期的に読み取ります。 + +```rust +use tauri_plugin_shell::{ShellExt, process::CommandEvent}; + +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_shell::init()) + .setup(|app| { + let handle = app.handle().clone(); + tauri::async_runtime::spawn(async move { + let (mut rx, mut child) = handle.shell().command("cargo") + .args(["tauri", "dev"]) + .spawn() + .expect("Failed to spawn cargo"); + + let mut i = 0; + while let Some(event) = rx.recv().await { + if let CommandEvent::Stdout(line) = event { + println!("got: {}", String::from_utf8(line).unwrap()); + i += 1; + if i == 4 { + child.write("message from Rust\n".as_bytes()).unwrap(); + i = 0; + } + } + } + }); + Ok(()) + }) +} +``` + + + + +### Tray Icon モジュールの移行 + +Rust の `SystemTray` API は表記の一貫性確保のために `TrayIcon` に改称されています。新しい API は、Rust の「`tray` モジュール」で参照できます。 + +#### `tauri::tray::TrayIconBuilder` の使用 + +`tauri::SystemTray` の代わりに `tauri::tray::TrayIconBuilder` を使用して下さい。 + +```rust +let tray = tauri::tray::TrayIconBuilder::with_id("my-tray").build(app)?; +``` + +詳しくは [TrayIconBuilder](https://docs.rs/tauri/2.0.0/tauri/tray/struct.TrayIconBuilder.html) の項を参照して下さい。 + +#### Menu の移行 + +`tauri::SystemTrayMenu` ではなく `tauri::menu::Menu` を、`tauri::SystemTraySubmenu` ではなく `tauri::menu::Submenu` を、そして `tauri::SystemTrayMenuItem` の代わりには `tauri::menu::PredefinedMenuItem` を使用して下さい。 + +#### Tray Events(トレイ・イベント) + +`tauri::SystemTray::on_event` は `tauri::tray::TrayIconBuilder::on_menu_event` と `tauri::tray::TrayIconBuilder::on_tray_icon_event` とに分割されました: + +```rust +use tauri::{ + menu::{MenuBuilder, MenuItemBuilder}, + tray::{MouseButton, MouseButtonState, TrayIconBuilder, TrayIconEvent}, +}; + +tauri::Builder::default() + .setup(|app| { + let toggle = MenuItemBuilder::with_id("toggle", "Toggle").build(app)?; + let menu = MenuBuilder::new(app).items(&[&toggle]).build()?; + let tray = TrayIconBuilder::new() + .menu(&menu) + .on_menu_event(move |app, event| match event.id().as_ref() { + "toggle" => { + println!("toggle clicked"); + } + _ => (), + }) + .on_tray_icon_event(|tray, event| { + if let TrayIconEvent::Click { + button: MouseButton::Left, + button_state: MouseButtonState::Up, + .. + } = event + { + let app = tray.app_handle(); + if let Some(webview_window) = app.get_webview_window("main") { + let _ = webview_window.show(); + let _ = webview_window.set_focus(); + } + } + }) + .build(app)?; + + Ok(()) + }) +``` + +### Updater プラグインの移行 + +自動更新チェック機能を備えた組み込みダイアログは削除されました。代わりに、Rust および JavaScript API を使用し、更新のチェックおよびインストールを行なってください。 + +Rust の `tauri::updater` および JavaScript の `@tauri-apps/api-updater` API は削除されました。`@tauri-apps/plugin-updater` を使用してカスタム・アップデーター・ターゲットを設定するには: + +1. Cargo へ依存関係を追加します: + +```toml +[dependencies] +tauri-plugin-updater = "2" +``` + +2. JavaScript または Rust のプロジェクトで使用します: + + + + +```rust +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_updater::Builder::new().build()) +} +``` + +```json +// package.json +{ + "dependencies": { + "@tauri-apps/plugin-updater": "^2.0.0" + } +} +``` + +```javascript +import { check } from '@tauri-apps/plugin-updater'; +import { relaunch } from '@tauri-apps/plugin-process'; + +const update = await check(); +if (update?.available) { + console.log(`Update to ${update.version} available! Date: ${update.date}`); + console.log(`Release notes: ${update.body}`); + await update.downloadAndInstall(); + // requires the `process` plugin + await relaunch(); +} +``` + + + + +アップデートを確認するには: + +```rust +use tauri_plugin_updater::UpdaterExt; + +fn main() { + tauri::Builder::default() + .plugin(tauri_plugin_updater::Builder::new().build()) + .setup(|app| { + let handle = app.handle(); + tauri::async_runtime::spawn(async move { + let response = handle.updater().check().await; + }); + Ok(()) + }) +} +``` + +カスタム・アップデーター・ターゲットを設定するには: + +```rust +fn main() { + let mut updater = tauri_plugin_updater::Builder::new(); + #[cfg(target_os = "macos")] + { + updater = updater.target("darwin-universal"); + } + tauri::Builder::default() + .plugin(updater.build()) +} +``` + + + + +### Path to Tauri Manger の移行 + +Rust の `tauri::api::path` モジュール機能および `tauri::PathResolver` は `tauri::Manager::path` に移動されました: + +```rust +use tauri::{path::BaseDirectory, Manager}; + +tauri::Builder::default() + .setup(|app| { + let home_dir_path = app.path().home_dir().expect("failed to get home dir"); + + let path = app.path().resolve("path/to/something", BaseDirectory::Config)?; + + Ok(()) + }) +``` + +### 新しい Window API への移行 + +Rust 関連では、`Window` の名称が `WebviewWindow` に、そのビルダー名 `WindowBuilder` が `WebviewWindowBuilder` に、`WindowUrl` の名称が `WebviewUrl` に変更されました。 + +さらには、上位の「ウィンドウ 親 API」をサポートするために、`Manager::get_window` 関数は `get_webview_window`に、ウィンドウズの `parent_window` API が `parent_raw` に改称されています。 + +JavaScript 関連では、`WebviewWindow` クラスが `@tauri-apps/api/webviewWindow` パスにエクスポートされるようになりました。 + +`onMenuClicked` 関数は削除されましたが、代わりに JavaScript でメニューを作成するとメニュー・イベントを捕捉できます。 + +### 埋め込み追加ファイルの移行(リソース) + +JavaScript 関連では、[File System プラグインの移行](#file-system-プラグインの移行) を実行することを忘れないでください。 +さらに、[許可の移行](#許可の移行) の項で、「バージョン 1」許可リストに加えられた変更の内容にも注意してください。 + +Rust 関連では、[Path to Tauri Manger の移行](#path-to-tauri-manager-の移行) の説明内容を必ず実行してください。 + +### 埋め込み外部バイナリの移行(サイドカー・コンテナ) + +Tauri バージョン 1(v1)では、外部バイナリとその引数は許可リストで定義されていました。バージョン 2(v2)では、新しい許可システムを使用します。詳細については、[許可の移行](#許可の移行) を参照してください。 + +JavaScript 関連では、[Shell プラグインの移行](#shell-プラグインの移行) の内容を必ず実行して下さい。 + +Rust 関連では、`tauri::api::process` API が削除されています。代わりに `tauri_plugin_shell::ShellExt` および `tauri_plugin_shell::process::CommandEvent` API を使用してください。使用法については、[外部バイナリの埋め込み](/develop/sidecar/#rust-から実行) ガイドを参照して下さい。 + +「process-command-api」機能フラグは バージョン 2(v2)で削除されました。そのため、外部バイナリの実行に、この機能を Tauri 構成で定義する必要がなくなりました。 + +### 許可の移行 + +バージョン 1 の許可リスト(「v1 許可リスト」)は、全く新しい許可システムに書き直されました。これにより、個々のプラグインで機能し、「マルチウィンドウ」と「リモート URL サポート」で、より柔軟な設定が可能になりました。 +この新しい許可システムはアクセス制御リスト (ACL) のように機能し、コマンドの許可/拒否、特定のウィンドウとドメインのセットへの許可割り当て、アクセス範囲の定義などを行なえます。 + +アプリへの許可を設定するには、`src-tauri/capabilities` フォルダ内に「機能ファイル(capability file)」を作成します。そうすると、Tauri があなたに代わって他のすべてを自動的に設定します。 + +`migrate` CLI コマンドは、v1 許可リストを自動的に解析し、関連する機能ファイルを生成します。 + +許可と機能の詳細については、[セキュリティ関連文書](/security/)を参照してください。 + +

+【※ JP text based on EN Nov 13, 2024】 +

diff --git a/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx b/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx new file mode 100644 index 0000000000..8a5b1fbd2d --- /dev/null +++ b/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx @@ -0,0 +1,156 @@ +--- +title: Tauri 2.0 ベータ版からのアップグレード +i18nReady: false +sidebar: + order: 16 +--- + +import { Tabs, TabItem } from '@astrojs/starlight/components'; +import CommandTabs from '@components/CommandTabs.astro'; + +ここでは、Tauri 2.0 ベータ版アプリケーションを Tauri 2.0 リリース候補版にアップグレードする手順を説明します。 + +## 自動移行 + +Tauri v2 CLI には、移行作業の大部分を自動化する `migrate` コマンドが含まれており、移行完了に役立ちます。 + + + +`migrate` コマンドの詳細については、[コマンドライン・インターフェース・リファレンス](/reference/cli/#migrate) を参照してください。 + +## 後方互換性のない変更点(Breaking Changes) + +ベータ版からリリース候補版への移行に際して、いくつかの互換性を伴わない変更を行ないました。これらの変更は、自動移行 (上記参照) することも、手動で実行することもできます。 + +### Tauri コア・プラグイン + +Tauri 組み込みプラグインが機能内で処理される方法を変更しました [PR #10390](https://github.com/tauri-apps/tauri/pull/10390)。 + +ベータ最新版から移行するには、機能内のすべてのコア許可識別子の先頭に `core:` を追加するか、`core:default` 許可に切り替えて古いコア・プラグイン識別子を削除する必要があります。 + +```json +... +"permissions": [ + "path:default", + "event:default", + "window:default", + "app:default", + "image:default", + "resources:default", + "menu:default", + "tray:default", +] +... +``` + +```json +... +"permissions": [ + "core:path:default", + "core:event:default", + "core:window:default", + "core:app:default", + "core:image:default", + "core:resources:default", + "core:menu:default", + "core:tray:default", +] +... +``` + +また、新しい特別な `core:default` 許可セットも追加しました。これには、すべてのコア・プラグインに対するデフォルト許可のすべてが含まれています。これにより、機能設定での許可の定型語句を簡素化できます。 + +```json +... +"permissions": [ + "core:default" +] +... +``` + +### 組み込み開発サーバー + +組み込み開発サーバーのネットワーク公開に変更を導入しました([PR #10437](https://github.com/tauri-apps/tauri/pull/10437) および [PR #10456](https://github.com/tauri-apps/tauri/pull/10456))。 + +組み込みモバイル開発サーバーは、ネットワーク全体に公開せず、トラフィックをローカル・コンピューターからデバイスに直接トンネリングします。 + +現在、この改善内容は、iOS デバイスで(直接または Xcode から)実行する場合には、自動的に適用されません。 +したがって、デフォルトでは開発サーバーにパブリック・ネットワーク・アドレスが使用されますが、 +これを回避するには、Xcode を開いて macOS 機と接続された iOS デバイスとの間の接続を自動的に開始するようにする方法があります。 +次に、`tauri ios dev --force-ip-prompt` を実行して、iOS デバイスの TUN アドレス(**::2** で終わる)を選択します。 + +物理的な iOS デバイス上で実行する場合は、開発サーバーの設定をこの変更に適応させる必要があります。 +以前は `TAURI_ENV_PLATFORM` 環境変数が `android` または `ios` のいずれかに一致するかどうかを確認することを推奨していましたが、 +今では iOS デバイスを使用しない場合にはローカルホストに接続できるようになったため、代わりに `TAURI_DEV_HOST` 環境変数を確認して下さい。 +以下に、Vite(ヴィート)での移行設定例を示します。 + +- 2.0.0-ベータ版: + +```js +import { defineConfig } from 'vite'; +import { svelte } from '@sveltejs/vite-plugin-svelte'; +import { internalIpV4Sync } from 'internal-ip'; + +const mobile = !!/android|ios/.exec(process.env.TAURI_ENV_PLATFORM); + +export default defineConfig({ + plugins: [svelte()], + clearScreen: false, + server: { + host: mobile ? '0.0.0.0' : false, + port: 1420, + strictPort: true, + hmr: mobile + ? { + protocol: 'ws', + host: internalIpV4Sync(), + port: 1421, + } + : undefined, + }, +}); +``` + +- 2.0.0: + +```js +import { defineConfig } from 'vite'; +import Unocss from 'unocss/vite'; +import { svelte } from '@sveltejs/vite-plugin-svelte'; + +const host = process.env.TAURI_DEV_HOST; + +export default defineConfig({ + plugins: [svelte()], + clearScreen: false, + server: { + host: host || false, + port: 1420, + strictPort: true, + hmr: host + ? { + protocol: 'ws', + host: host, + port: 1430, + } + : undefined, + }, +}); +``` + +:::note +NPM パッケージの `internal-ip` は不要になりました。代わりに TAURI_DEV_HOST 値を直接使用できます。 +::: + +

+【※ JP text based on EN Oct 06, 2024】 +

diff --git a/src/content/docs/jp/start/migrate/index.mdx b/src/content/docs/jp/start/migrate/index.mdx new file mode 100644 index 0000000000..e24432db39 --- /dev/null +++ b/src/content/docs/jp/start/migrate/index.mdx @@ -0,0 +1,27 @@ +--- +title: アップグレード & 移行 +sidebar: + label: Overview + order: 10 +--- + +Tauri 1.0 からのアップグレードや、他のフレームワークから移行するための一般的なシナリオと手順について説明します。 + +import { LinkCard, CardGrid } from '@astrojs/starlight/components'; + + + + + + +

+【※ JP text based on EN Oct 01, 2024】 +

From 83ee76881d7ddc179a8c6faa8b1adbac53ec43af Mon Sep 17 00:00:00 2001 From: J1-takai Date: Sun, 5 Jan 2025 18:04:05 +0900 Subject: [PATCH 11/38] i18n (JP) Add JP traslation --- src/content/docs/jp/404.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/content/docs/jp/404.md diff --git a/src/content/docs/jp/404.md b/src/content/docs/jp/404.md new file mode 100644 index 0000000000..0315291297 --- /dev/null +++ b/src/content/docs/jp/404.md @@ -0,0 +1,17 @@ +--- +title: '404' +template: doc +editUrl: false +tableOfContents: false +lastUpdated: false +pagefind: false +next: false +prev: false +hero: + title: '404' + tagline: お探しのページは見つかりません。URL を確認するか、検索バーから再検索してください。 +--- + +

+ 検索操作に問題がある場合には、GitHub または Discord で問題を報告して下さい。 +

From 06b74891238775508e5f31e5e53338621811e27a Mon Sep 17 00:00:00 2001 From: J1-takai Date: Mon, 6 Jan 2025 22:55:27 +0900 Subject: [PATCH 12/38] i18n (JP) Add JP translation --- src/content/docs/jp/404.md | 7 ++- src/content/docs/jp/doc-JP Rev Control.mdx | 49 ++++++++++++++++++++ src/content/docs/jp/index.mdx | 4 ++ src/content/docs/jp/rss.mdx | 28 +++++++++++ src/content/docs/jp/start/create-project.mdx | 17 +++---- src/content/docs/jp/start/index.mdx | 23 ++++----- src/content/docs/jp/start/prerequisites.mdx | 21 +++++---- 7 files changed, 118 insertions(+), 31 deletions(-) create mode 100644 src/content/docs/jp/doc-JP Rev Control.mdx create mode 100644 src/content/docs/jp/rss.mdx diff --git a/src/content/docs/jp/404.md b/src/content/docs/jp/404.md index 0315291297..684b771e25 100644 --- a/src/content/docs/jp/404.md +++ b/src/content/docs/jp/404.md @@ -13,5 +13,8 @@ hero: ---

- 検索操作に問題がある場合には、GitHub または Discord で問題を報告して下さい。 -

+ 検索上で問題がある場合には、GitHub 上でレポートの提出 または Discord での問題報告 を行なって下さい。 + +
+Doc-JP 2.00.00 +
diff --git a/src/content/docs/jp/doc-JP Rev Control.mdx b/src/content/docs/jp/doc-JP Rev Control.mdx new file mode 100644 index 0000000000..8dd9d35f39 --- /dev/null +++ b/src/content/docs/jp/doc-JP Rev Control.mdx @@ -0,0 +1,49 @@ +# Memorundom on Doc-JP Rev Control + ++ Rev Status Control of Japanese Translation Documents
日本語訳文書の変更履歴メモ + +## Rev Numbering System Configuration: x.xx.xx + +Example Numbering(番号体系例): 2.00.01 + ++ First Didit(最初の一桁)= Tauri Version: "2" --> Tauri 2.0(Tauri のバージョン) ++ Middle Digits(中央の二桁)= English Doc Status: "00" --> EN Doc Status #00(英語版文書番号) ++ Last Digits(最後の二桁) = JP Doc Status: "01" --> JP Doc Status #01(日本語文書番号) + +For the details of EN/JP doc status, see the listing below:
文書番号の詳細は以下のリストを参照して下さい。 + +**NOTE** This Rv Control number is for JP translation purpose only and does not necessarily represent the actuarl revision history of each document.
+**《注意》** この変更履歴番号は、日本語翻訳管理用であり、各文書の実際の変更履歴を反映しているものではありません。 + +## EN/JP Doc Status list + +### Index.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2025/01/01 | **00** | 2025/01/06 | + +### 404.md +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2025/01/01 | **00** | 2025/01/06 | + +### rss.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2025/01/01 | **00** | 2025/01/06 | + +### start/index.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/01 | **00** | 2025/01/06 | + +### start/prerequisites.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/17 | **00** | 2025/01/06 | + +### start/create-project.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2024/12/31 | **00** | 2025/01/06 | + diff --git a/src/content/docs/jp/index.mdx b/src/content/docs/jp/index.mdx index 5931235ad2..3a516d6e48 100644 --- a/src/content/docs/jp/index.mdx +++ b/src/content/docs/jp/index.mdx @@ -63,3 +63,7 @@ import Cta from '@fragments/cta.mdx'; 言語です。 + +
+Doc-JP 2.00.00 +
\ No newline at end of file diff --git a/src/content/docs/jp/rss.mdx b/src/content/docs/jp/rss.mdx new file mode 100644 index 0000000000..7eab90b223 --- /dev/null +++ b/src/content/docs/jp/rss.mdx @@ -0,0 +1,28 @@ +--- +title: Tauri RSS Feeds +i18nReady: true +--- + +import { LinkCard } from '@astrojs/starlight/components'; + + + + + + + +
+Doc-JP 2.00.00 +
\ No newline at end of file diff --git a/src/content/docs/jp/start/create-project.mdx b/src/content/docs/jp/start/create-project.mdx index 948b2926a2..be3365e89a 100644 --- a/src/content/docs/jp/start/create-project.mdx +++ b/src/content/docs/jp/start/create-project.mdx @@ -206,7 +206,7 @@ import CommandTabs from '@components/CommandTabs.astro'; cargo="cargo tauri dev" /> - This command will compile the Rust code and open a window with your web content. + このコマンドは、Rust コードをコンパイルし、あなたが作成した Web コンテンツのウィンドウを表示します。 @@ -214,12 +214,13 @@ import CommandTabs from '@components/CommandTabs.astro'; ## 次のステップは… -- [フロントエンドの設定について](/start/frontend/) -- [Tauri コマンドライン・インターフェイスについて](/reference/cli/) -- [Tauri アプリの作り方について](/develop/) -- [Tauri 拡張のための追加機能について](/plugin/) +- [フロントエンドの設定について](../start/frontend/) +- [Tauri コマンドライン・インターフェイスについて](../reference/cli/) +- [Tauri アプリの作り方について](../develop/) +- [Tauri 拡張のための追加機能について](../plugin/) -

-【※ JP text based on EN Nov 01, 2024】 -

+
+【※ この日本語版は、「Dec 31, 2024 英語版に基づいています】
+Doc-JP 2.00.00 +
diff --git a/src/content/docs/jp/start/index.mdx b/src/content/docs/jp/start/index.mdx index aa51486cb5..1d036ed36e 100644 --- a/src/content/docs/jp/start/index.mdx +++ b/src/content/docs/jp/start/index.mdx @@ -7,13 +7,13 @@ sidebar: Tauri は、主要なデスクトップおよびモバイル・プラットフォームのすべてで、軽量・高速なバイナリ・ファイルを構築できるフレームワーク(仕組み)です。フロントエンドには、HTML、JavaScript、CSS にコンパイルされるフレームワークを利用してユーザー・エクスペリエンス(UX)を構築し、バックエンドの処理ロジックには、必要に応じて Rust、Swift、Kotlin などの言語を活用できます。 -以下のシェル・コマンド(Bash、PowerShell、…)のいずれかを使用して、「Tauri アプリを作成する」[`create-tauri-app`](https://github.com/tauri-apps/create-tauri-app) を始める準備をしましょう。まず「必須事項ガイド」[prerequisites guide](/start/prerequisites/) に従って、Tauri に必要なすべての「依存関係」をインストールし、次に推奨されるフロントエンド構成についての「フロントエンド構成ガイド」[Frontend Configuration guides](/start/frontend/) を参照してください。 +以下のシェル・コマンド(Bash、PowerShell、…)のいずれかを使用して、「Tauri アプリを作成する」[`create-tauri-app`](https://github.com/tauri-apps/create-tauri-app) を始める準備をしましょう。まず「必須事項ガイド」[prerequisites guide](../start/prerequisites/) に従って、Tauri に必要なすべての「依存関係」をインストールし、次に推奨されるフロントエンド構成についての「フロントエンド構成ガイド」[Frontend Configuration guides](../start/frontend/) を参照してください。 import Cta from '../_fragments/cta.mdx'; -最初のアプリを作成した後、「機能と使用例のリスト」 [List of Features & Recipes](/plugin/) の章で Tauri のそのほかの機能や使い方を調べることができます。 +最初のアプリを作成した後、「機能と使用例のリスト」 [List of Features & Recipes](../plugin/) の章で Tauri のそのほかの機能や使い方を調べることができます。 ## Tauri の利点 @@ -23,7 +23,7 @@ Tauri には、プログラム開発者が拠り所とできる三つの大き - システム本体の Web ビューを使用することによるでバンドルサイズの軽量化 - 任意のフロントエンド技術の利用や複数のコンピュータ言語を統合できる柔軟性 -Tauri の根本思想については、「Tauri 1.0 ブログ [Tauri 1.0 blog post](/blog/tauri-1-0/)」を参照してください。 +Tauri の根本思想については、「Tauri 1.0 ブログ [Tauri 1.0 blog post](../blog/tauri-1-0/)」を参照してください。 ### 安全なプログラム基盤 @@ -37,18 +37,19 @@ Tauri は、「Rust」を用いて構築されていますので、Rust が提 Tauri アプリは、すでにユーザー・システムに搭載されている Web ビューを利用しています。したがって、どの Tauri アプリも、そのアプリに必要なコードとデータ資産のみを含み、アプリ内にブラウザ・エンジンを同梱する必要がありません。このことは、つまり、最小の Tauri アプリは 600 KB 以下のサイズになりうることを意味しています。 -最適化されたアプリの作成の仕方については、「アプリ・サイズの考え方 [App Size concept](/concept/size/) をご覧ください。 +最適化されたアプリの作成の仕方については、「アプリ・サイズの考え方 [App Size concept](../concept/size/) をご覧ください。 ### 柔軟性のある基本仕様 -Tauri は ウェブ技術を利用していますので、事実上どのフロントエンド技術も Tauri と互換性があります。「フロントエンド構成ガイド [Frontend Configuration guide](/start/frontend/) 」では、良く用いられるフロントエンド技術の一般的な構成例を記載しています。 +Tauri は ウェブ技術を利用していますので、事実上どのフロントエンド技術も Tauri と互換性があります。「フロントエンド構成ガイド [Frontend Configuration guide](../start/frontend/) 」では、良く用いられるフロントエンド技術の一般的な構成例を記載しています。 -JavaScript 部分と Rust 部分間の結合には、JavaScript の「`invoke`(呼出し)」関数が、Swift や Kotlin との結合には「[Tauri Plugins](/develop/plugins/)(Tauri プラグイン)」が利用できます。 +JavaScript 部分と Rust 部分間の結合には、JavaScript の「`invoke`(呼出し)」関数が、Swift や Kotlin との結合には「[Tauri Plugins](../develop/plugins/)(Tauri プラグイン)」が利用できます。 -[TAO](https://github.com/tauri-apps/tao) は、Tauri のウィンドウ生成を、[WRY](https://github.com/tauri-apps/wry) はウェブ表示のレンダリングを行なうプラグインです。このようなプラグインは Tauri によって管理されているライブラリで、Tauri が対応できる以上の、より進んだシステム統合が必要な場合に直接使用できます。 +[TAO](https://github.com/tauri-apps/tao) は Tauri のウィンドウ生成を、[WRY](https://github.com/tauri-apps/wry) はウェブ表示のレンダリングを行なうプラグインです。このようなプラグインは Tauri によって管理されているライブラリで、Tauri が対応できる以上の、より進んだシステム統合が必要な場合に直接使用できます。 -加えて、Tauri には、Tauri 本体が対応できる機能を拡張する多くのプラグインもあります。このようなプラグインは、コミュニティによって提供されているプラグインと並んで、「プラグイン [Plugins section](/plugin/)」のセクションで見つけることができます。 +加えて、Tauri には、Tauri 本体が対応できる機能を拡張する多くのプラグインもあります。このようなプラグインは、コミュニティによって提供されているプラグインと並んで、「プラグイン [Plugins section](../plugin/)」のセクションで見つけることができます。 -

-【※ JP text based on EN Oct 1, 2024】 -

\ No newline at end of file +
+【※ この日本語版は、「Oct 1, 2024 英語版」に基づいています】
+Doc-JP 2.00.00 +
\ No newline at end of file diff --git a/src/content/docs/jp/start/prerequisites.mdx b/src/content/docs/jp/start/prerequisites.mdx index bf2a98d7b2..df9b20fbe8 100644 --- a/src/content/docs/jp/start/prerequisites.mdx +++ b/src/content/docs/jp/start/prerequisites.mdx @@ -171,7 +171,7 @@ Tauri は [Xcode](https://developer.apple.com/xcode/resources/) とさまざま インストール後には、必ず Xcode を起動してセットアップを完了させてください。
-デスクトップ・アプリのみを開発する場合は、ここをクリック +デスクトップ・アプリのみを開発する場合は、ここをクリック<../summary> もしデスクトップ・アプリのみを開発する予定で、iOS 用アプリを作成しないのであれば、上記の「Xcode」の代わりに、「Xcode コマンドライン・ツール」をインストールすることもできます。 ```sh @@ -256,7 +256,7 @@ rustup default stable-msvc **変更を有効にするために、必ずターミナル (場合によってはシステム本体) を再起動してください。** -次のステップ: Android および iOS 向けの開発を行なう場合は [モバイル関連の設定](#configure-for-mobile-targets) を、あるいは、JavaScript を使用する場合は [Node のインストール](#nodejs) を実行してください。それ以外の場合は、次章 [プロジェクトの作成](/start/create-project/) に進んでください。 +次のステップ: Android および iOS 向けの開発を行なう場合は [モバイル関連の設定](#configure-for-mobile-targets) を、あるいは、JavaScript を使用する場合は [Node のインストール](#nodejs) を実行してください。それ以外の場合は、次章 [プロジェクトの作成](../start/create-project/) に進んでください。 ## Node.js @@ -279,7 +279,7 @@ npm -v 「npm」が Node.js のデフォルト・パッケージ・マネージャーですが、「pnpm」や「yarn」といった別のパッケージ・マネージャーを使うこともできます。こうしたパッケージ・マネージャーを有効化するには、ターミナルにて `corepack enable` を実行してください。この処理ステップは、「npm」以外のパッケージ・マネージャーを使いたい場合にのみに必要な、任意項目です。 -次のステップ: [モバイル関連の設定](#モバイル関連の設定) または [プロジェクトの作成](/start/create-project/) です。 +次のステップ: [モバイル関連の設定](#モバイル関連の設定) または [プロジェクトの作成](../start/create-project/) です。 ## モバイル関連の設定 @@ -373,7 +373,7 @@ PowerShell は、再起動またはログアウトするまで、新しい環境 rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android ```` -次のステップ: [iOS 用の設定](#ios) または [プロジェクトの作成](/start/create-project/)。 +次のステップ: [iOS 用の設定](#ios) または [プロジェクトの作成](../start/create-project/)。 ### iOS @@ -399,18 +399,19 @@ rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim brew install cocoapods ``` -次のステップ: [プロジェクトの作成](/start/create-project/). +次のステップ: [プロジェクトの作成](../start/create-project/). ## 問題が発生したら -インストール中に何か問題が発生したら、「[トラブルシューティングに関する項目](/develop/debug/)」を参照するか、「[Tauri コミュニティー](https://discord.com/invite/tauri)」に問い合わせてみてください。 +インストール中に何か問題が発生したら、「[トラブルシューティングに関する項目](../develop/debug/)」を参照するか、「[Tauri コミュニティー](https://discord.com/invite/tauri)」に問い合わせてみてください。 -すべての必要事項をインストールし終えましたので、これで [はじめての Tauri プログラム](/start/create-project/) を作成する準備が整いました! +すべての必要事項をインストールし終えましたので、これで [はじめての Tauri プログラム](../start/create-project/) を作成する準備が整いました! -

-【※ JP text based on EN Nov 17, 2024】 -

\ No newline at end of file +
+【※ この日本語版は、「Nov 17, 2024 英語版に基づいています】
+Doc-JP 2.00.00 +
From 6454f3ee1c2e2d7f959b5a16524882e2600bcb5f Mon Sep 17 00:00:00 2001 From: J1-takai Date: Tue, 7 Jan 2025 18:24:24 +0900 Subject: [PATCH 13/38] i18n (JP) Add JP translation --- src/content/docs/jp/doc-JP Rev Control.mdx | 36 ++++++++++++++----- src/content/docs/jp/start/create-project.mdx | 8 ++--- src/content/docs/jp/start/frontend/index.mdx | 9 ++--- src/content/docs/jp/start/frontend/leptos.mdx | 10 +++--- src/content/docs/jp/start/frontend/nextjs.mdx | 10 +++--- src/content/docs/jp/start/index.mdx | 1 + src/content/docs/jp/start/prerequisites.mdx | 4 +-- 7 files changed, 52 insertions(+), 26 deletions(-) diff --git a/src/content/docs/jp/doc-JP Rev Control.mdx b/src/content/docs/jp/doc-JP Rev Control.mdx index 8dd9d35f39..a6b1d1bcce 100644 --- a/src/content/docs/jp/doc-JP Rev Control.mdx +++ b/src/content/docs/jp/doc-JP Rev Control.mdx @@ -17,33 +17,53 @@ For the details of EN/JP doc status, see the listing below:
文書番号 ## EN/JP Doc Status list -### Index.mdx +### Home + +#### Index.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : | :---: | :--- | :---: | :--- | | **00** | 2025/01/01 | **00** | 2025/01/06 | -### 404.md +#### 404.md | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : | :---: | :--- | :---: | :--- | | **00** | 2025/01/01 | **00** | 2025/01/06 | -### rss.mdx +#### rss.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : | :---: | :--- | :---: | :--- | | **00** | 2025/01/01 | **00** | 2025/01/06 | -### start/index.mdx +### Quick Start + +#### start/index.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : | :---: | :--- | :---: | :--- | | **00** | 2024/10/01 | **00** | 2025/01/06 | -### start/prerequisites.mdx +#### start/prerequisites.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/17 | **00** | 2025/01/07 | + +#### start/create-project.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2024/12/31 | **00** | 2025/01/07 | + +#### frontend/index.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/01 | **00** | 2025/01/07 | + +#### frontend/Leptos.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : | :---: | :--- | :---: | :--- | -| **00** | 2024/11/17 | **00** | 2025/01/06 | +| **00** | 2024/10/01 | **00** | 2025/01/07 | -### start/create-project.mdx +#### frontend/Nextjs.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : | :---: | :--- | :---: | :--- | -| **00** | 2024/12/31 | **00** | 2025/01/06 | +| **00** | 2024/11/01 | **00** | 2025/01/07 | + diff --git a/src/content/docs/jp/start/create-project.mdx b/src/content/docs/jp/start/create-project.mdx index be3365e89a..8b6f3f0821 100644 --- a/src/content/docs/jp/start/create-project.mdx +++ b/src/content/docs/jp/start/create-project.mdx @@ -13,7 +13,7 @@ Tauri が非常に柔軟である理由の1つは、事実上どのような `create-tauri-app` には、現在、以下のテンプレートが揃っています: 「vanilla」(HTML、CSS および JavaScript/フレームワークなし)、「[Vue.js](https://vuejs.org)」、「[Svelte](https://svelte.dev)」、「[React](https://reactjs.org/)」、「[SolidJS](https://www.solidjs.com/)」、「[Angular](https://angular.io/)」、「[Preact](https://preactjs.com/)」、「[Yew](https://yew.rs/)」、「[Leptos](https://github.com/leptos-rs/leptos)」、 および「[Sycamore](https://sycamore-rs.netlify.app/)」です。 [Awesome Tauri repo](https://github.com/tauri-apps/awesome-tauri) で見つかるコミュニティー作成のテンプレートやフレームワークも追加利用可能です。 {/* TODO: redirect to integrate to existing front-end project specific docs */} -あるいは、下記の「[マニュアル・セットアップ](#マニュアル・セットアップ)」を実行し、Tauri を現在作業中のプロジェクトに追加することで、現行のコードを Tauri アプリに変更できます。 +あるいは、下記の「[マニュアル・セットアップ](#マニュアルセットアップ)」を実行し、Tauri を現在作業中のプロジェクトに追加することで、現行のコードを Tauri アプリに変更できます。 ## `create-tauri-app` を利用する @@ -108,7 +108,7 @@ Tauri が非常に柔軟である理由の1つは、事実上どのような #### 開発サーバーの起動 -`create-tauri-app` で設定後、プロジェクト・フォルダーに移動して依存関係をインストールしたら、 [Tauri CLI](/reference/cli/) を使用して開発サーバーを起動します。 +`create-tauri-app` で設定後、プロジェクト・フォルダーに移動して依存関係をインストールしたら、 [Tauri CLI](../reference/cli/) (コマンドライン・インターフェース)を使用して開発サーバーを起動します。 import CommandTabs from '@components/CommandTabs.astro'; @@ -135,7 +135,7 @@ import CommandTabs from '@components/CommandTabs.astro'; ## マニュアル・セットアップ -すでにプロントエンドができあがっているとか、自分自身で設定を行ないたいとかいう場合には、「Tauri CLI」(コマンドライン・インターフェイス)を用いてそのプロジェクトのバックエンドを個別に初期化できます。 +すでにプロントエンドができあがっているとか、自分自身で設定を行ないたいとかいう場合には、「Tauri CLI」を用いてそのプロジェクトのバックエンドを個別に初期化できます。 :::note 以下の事例では、新しいプロジェクトを始めていることを前提としています。アプリケーションのフロントエンドをすでに初期化している場合は、最初のステップを省略できます。 @@ -221,6 +221,6 @@ import CommandTabs from '@components/CommandTabs.astro';
-【※ この日本語版は、「Dec 31, 2024 英語版に基づいています】
+【※ この日本語版は、「Dec 31, 2024 英語版」に基づいています】
Doc-JP 2.00.00
diff --git a/src/content/docs/jp/start/frontend/index.mdx b/src/content/docs/jp/start/frontend/index.mdx index 1ee438c549..ab3668789f 100644 --- a/src/content/docs/jp/start/frontend/index.mdx +++ b/src/content/docs/jp/start/frontend/index.mdx @@ -51,11 +51,12 @@ Tauri はフロントエンドに依存せず、ほとんどのフロントエ :::tip[リストにフレームワークが見つからない?] -目的のフレームワークがリストに載っていない? それは、追加設定不要で Tauri で動作するフレームワークだからかもしれません。一般的な設定については、[設定チェックリスト](/start/frontend/#設定チェックリスト)の項を参照してください。 +目的のフレームワークがリストに載っていない? それは、追加設定不要で Tauri で動作するフレームワークだからかもしれません。一般的な設定については、[設定チェックリスト](../start/frontend/#設定チェックリスト)の項を参照してください。 ::: -

-【※ JP text based on EN Oct 01, 2024】 -

+
+【※ この日本語版は、「Oct 01, 2024 英語版」に基づいています】
+Doc-JP 2.00.00 +
diff --git a/src/content/docs/jp/start/frontend/leptos.mdx b/src/content/docs/jp/start/frontend/leptos.mdx index 787ffc38d0..0405d71bb6 100644 --- a/src/content/docs/jp/start/frontend/leptos.mdx +++ b/src/content/docs/jp/start/frontend/leptos.mdx @@ -8,7 +8,7 @@ tableOfContents: import { Tabs, TabItem, Steps } from '@astrojs/starlight/components'; import CommandTabs from '@components/CommandTabs.astro'; -Leptos は、Rustを基盤としたウェブ・フレームワークです。より詳しい Leptos の説明は、[公式ウェッブ・サイト【英語版】](https://leptos.dev/) をご覧ください。以下の説明内容は、「Leptos バージョン 0.6」に準拠しています。  +Leptos(レプトス)は、Rustを基盤としたウェブ・フレームワークです。より詳しい Leptos の説明は、[公式ウェッブ・サイト【英語版】](https://leptos.dev/) をご覧ください。以下の説明内容は、「Leptos バージョン 0.6」に準拠しています。  ## チェック項目 @@ -56,6 +56,8 @@ Leptos は、Rustを基盤としたウェブ・フレームワークです。よ -

-【※ JP text based on EN Oct 01, 2024】 -

+ +
+【※ この日本語版は、「Oct 01, 2024 英語版」に基づいています】
+Doc-JP 2.00.00 +
diff --git a/src/content/docs/jp/start/frontend/nextjs.mdx b/src/content/docs/jp/start/frontend/nextjs.mdx index 3670a5eae2..22631e387a 100644 --- a/src/content/docs/jp/start/frontend/nextjs.mdx +++ b/src/content/docs/jp/start/frontend/nextjs.mdx @@ -10,7 +10,7 @@ tableOfContents: import { Tabs, TabItem, Steps } from '@astrojs/starlight/components'; import CommandTabs from '@components/CommandTabs.astro'; -Next.js は React 用のメタ・フレームワークです。Next.js の詳細については、https://nextjs.org ををご覧ください。以下の説明内容は、「Next.js 14.2.3 バージョン」に準拠しています。 +Next.js(ネクスト・ジェイエス)は React 用のメタ・フレームワークです。Next.js の詳細については、https://nextjs.org ををご覧ください。以下の説明内容は、「Next.js 14.2.3 バージョン」に準拠しています。 ## チェック項目 @@ -130,6 +130,8 @@ Next.js は React 用のメタ・フレームワークです。Next.js の詳細 -

-【※ JP text based on EN Nov 01, 2024】 -

+ +
+【※ この日本語版は、「Nov 01, 2024 英語版」に基づいています】
+Doc-JP 2.00.00 +
diff --git a/src/content/docs/jp/start/index.mdx b/src/content/docs/jp/start/index.mdx index 1d036ed36e..20552e67b6 100644 --- a/src/content/docs/jp/start/index.mdx +++ b/src/content/docs/jp/start/index.mdx @@ -49,6 +49,7 @@ JavaScript 部分と Rust 部分間の結合には、JavaScript の「`invoke` 加えて、Tauri には、Tauri 本体が対応できる機能を拡張する多くのプラグインもあります。このようなプラグインは、コミュニティによって提供されているプラグインと並んで、「プラグイン [Plugins section](../plugin/)」のセクションで見つけることができます。 +
【※ この日本語版は、「Oct 1, 2024 英語版」に基づいています】
Doc-JP 2.00.00 diff --git a/src/content/docs/jp/start/prerequisites.mdx b/src/content/docs/jp/start/prerequisites.mdx index df9b20fbe8..e81de2d9cf 100644 --- a/src/content/docs/jp/start/prerequisites.mdx +++ b/src/content/docs/jp/start/prerequisites.mdx @@ -256,7 +256,7 @@ rustup default stable-msvc **変更を有効にするために、必ずターミナル (場合によってはシステム本体) を再起動してください。** -次のステップ: Android および iOS 向けの開発を行なう場合は [モバイル関連の設定](#configure-for-mobile-targets) を、あるいは、JavaScript を使用する場合は [Node のインストール](#nodejs) を実行してください。それ以外の場合は、次章 [プロジェクトの作成](../start/create-project/) に進んでください。 +次のステップ: Android および iOS 向けの開発を行なう場合は [モバイル関連の設定](#モバイル関連の設定) を、あるいは、JavaScript を使用する場合は [Node のインストール](#nodejs) を実行してください。それ以外の場合は、次章 [プロジェクトの作成](../start/create-project/) に進んでください。 ## Node.js @@ -412,6 +412,6 @@ brew install cocoapods
-【※ この日本語版は、「Nov 17, 2024 英語版に基づいています】
+【※ この日本語版は、「Nov 17, 2024 英語版」に基づいています】
Doc-JP 2.00.00
From 7a15c7c73d1be8785c43d2d53e43d98566cf0bbb Mon Sep 17 00:00:00 2001 From: J1-takai Date: Tue, 7 Jan 2025 23:03:11 +0900 Subject: [PATCH 14/38] i18n (JP) Add JP transration --- src/content/docs/jp/doc-JP Rev Control.mdx | 33 +++++++++++++++++-- src/content/docs/jp/start/frontend/nuxt.mdx | 9 ++--- src/content/docs/jp/start/frontend/qwik.mdx | 10 +++--- .../docs/jp/start/frontend/sveltekit.mdx | 14 ++++---- src/content/docs/jp/start/frontend/trunk.mdx | 9 ++--- src/content/docs/jp/start/frontend/vite.mdx | 8 +++-- 6 files changed, 60 insertions(+), 23 deletions(-) diff --git a/src/content/docs/jp/doc-JP Rev Control.mdx b/src/content/docs/jp/doc-JP Rev Control.mdx index a6b1d1bcce..ba78bb8fb5 100644 --- a/src/content/docs/jp/doc-JP Rev Control.mdx +++ b/src/content/docs/jp/doc-JP Rev Control.mdx @@ -56,14 +56,43 @@ For the details of EN/JP doc status, see the listing below:
文書番号 | :---: | :--- | :---: | :--- | | **00** | 2024/10/01 | **00** | 2025/01/07 | -#### frontend/Leptos.mdx +#### frontend/leptos.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : | :---: | :--- | :---: | :--- | | **00** | 2024/10/01 | **00** | 2025/01/07 | -#### frontend/Nextjs.mdx +#### frontend/nextjs.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : | :---: | :--- | :---: | :--- | | **00** | 2024/11/01 | **00** | 2025/01/07 | +#### frontend/nuxt.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/01 | **00** | 2025/01/07 | + +#### frontend/qwik.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/01 | **00** | 2025/01/07 | + +#### frontend/sveltekit.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/01 | **00** | 2025/01/07 | + +#### frontend/trunk.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/01 | **00** | 2025/01/07 | + +#### frontend/vite.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/01 | **00** | 2025/01/07 | + +#### migrate/index.mdx + + +Cont. diff --git a/src/content/docs/jp/start/frontend/nuxt.mdx b/src/content/docs/jp/start/frontend/nuxt.mdx index caaffbc963..80c37821f3 100644 --- a/src/content/docs/jp/start/frontend/nuxt.mdx +++ b/src/content/docs/jp/start/frontend/nuxt.mdx @@ -8,7 +8,7 @@ tableOfContents: import { Tabs, TabItem, Steps } from '@astrojs/starlight/components'; -Nuxt は Vue 用のメタ・フレームワークです。Nuxt の詳細については、https://nuxt.com をご覧ください。以下の説明内容は、「Nuxt 3.11. バージョン」に準拠しています。 +Nuxt(ナクスト)は Vue 用のメタ・フレームワークです。Nuxt の詳細については、https://nuxt.com をご覧ください。以下の説明内容は、「Nuxt 3.11. バージョン」に準拠しています。 ## チェック項目 @@ -116,6 +116,7 @@ Nuxt は Vue 用のメタ・フレームワークです。Nuxt の詳細につ -

-【※ JP text based on EN Nov 01, 2024】 -

+
+【※ この日本語版は、「Nov 01, 2024 英語版」に基づいています】
+Doc-JP 2.00.00 +
diff --git a/src/content/docs/jp/start/frontend/qwik.mdx b/src/content/docs/jp/start/frontend/qwik.mdx index 61b28e8986..b3d64f4b6a 100644 --- a/src/content/docs/jp/start/frontend/qwik.mdx +++ b/src/content/docs/jp/start/frontend/qwik.mdx @@ -9,7 +9,7 @@ tableOfContents: import { Steps, TabItem, Tabs } from '@astrojs/starlight/components'; import CommandTabs from '@components/CommandTabs.astro'; -ここでは、「Qwik ウェッブ・フレームワーク」を用いた Tauri アプリの作成を順に説明していきます。Qwik の詳細については、公式サイト https://qwik.dev をご覧ください。 +ここでは、「Qwik(クウィック)ウェッブ・フレームワーク」を用いた Tauri アプリの作成を順に説明していきます。Qwik の詳細については、公式サイト https://qwik.dev をご覧ください。 ## チェック項目 @@ -141,6 +141,8 @@ import CommandTabs from '@components/CommandTabs.astro'; -

-【※ JP text based on EN Nov 01, 2024】 -

+ +
+【※ この日本語版は、「Nov 01, 2024 英語版」に基づいています】
+Doc-JP 2.00.00 +
diff --git a/src/content/docs/jp/start/frontend/sveltekit.mdx b/src/content/docs/jp/start/frontend/sveltekit.mdx index dba9ed11eb..985fbb9aef 100644 --- a/src/content/docs/jp/start/frontend/sveltekit.mdx +++ b/src/content/docs/jp/start/frontend/sveltekit.mdx @@ -9,7 +9,7 @@ tableOfContents: import { Tabs, TabItem, Steps } from '@astrojs/starlight/components'; import CommandTabs from '@components/CommandTabs.astro'; -SvelteKit は Svelte 用のメタ・フレームワークです。SvelteKit の詳細は「公式サイト https://kit.svelte.dev/」をご覧ください。以下の説明内容は「SvelteKit 2.5.7 / Svelte 4.2.15」に準拠しています。 +SvelteKit(スヴェルトキット)は Svelte(スヴェルト)用のメタ・フレームワークです。SvelteKit の詳細は「公式サイト https://kit.svelte.dev/」をご覧ください。以下の説明内容は「SvelteKit 2.5.7 / Svelte 4.2.15」に準拠しています。 ## チェック項目 @@ -121,7 +121,7 @@ SvelteKit は Svelte 用のメタ・フレームワークです。SvelteKit の 1. ##### 「SSR」の無効化 - 最後に、「SSR」を無効化し、以下の内容を含む「ルート `+layout.ts` ファイル」(TypeScript を使用していない場合は `+layout.js`)を追加して、事前レンダリングを有効化する必要があります: + 最後に、「SSR」(サーバーサイドレンダリング)を無効化し、以下の内容を含む「ルート `+layout.ts` ファイル」(TypeScript を使用していない場合は `+layout.js`)を追加して、事前レンダリングを有効化する必要があります: ```ts // src/routes/+layout.ts @@ -131,10 +131,12 @@ SvelteKit は Svelte 用のメタ・フレームワークです。SvelteKit の `static-adapter` は、アプリ全体に対して「SSR を無効化」することを求めているわけではありませんが、そうすることで、(Tauri の API のような)グローバル・ウィンドウ・オブジェクトに依存する API を [クライアント側のチェック](https://kit.svelte.dev/docs/faq#how-do-i-use-x-with-sveltekit-how-do-i-use-a-client-side-only-library-that-depends-on-document-or-window) なしで使用できるようになります。《リンク先は、Svelte 公式サイトの FQA ページ(英語版)です》 - さらにいえば、「SSG」よりも「シングルページ・アプリケーション (SPA)」モードを好む場合は、[アダプタ関連ドキュメント](https://kit.svelte.dev/docs/single-page-apps) 《英語版ページ》に従ってアダプタ設定と `+layout.ts` を変更できます。 + さらにいえば、「SSG」(静的サイト生成)よりも「シングルページ・アプリケーション (SPA)」モードを好む場合は、[アダプタ関連ドキュメント](https://kit.svelte.dev/docs/single-page-apps) 《英語版ページ》に従ってアダプタ設定と `+layout.ts` を変更できます。 -

-【※ JP text based on EN Nov 01, 2024】 -

+ +
+【※ この日本語版は、「Nov 01, 2024 英語版」に基づいています】
+Doc-JP 2.00.00 +
diff --git a/src/content/docs/jp/start/frontend/trunk.mdx b/src/content/docs/jp/start/frontend/trunk.mdx index d7d8638797..1113bb3f36 100644 --- a/src/content/docs/jp/start/frontend/trunk.mdx +++ b/src/content/docs/jp/start/frontend/trunk.mdx @@ -8,7 +8,7 @@ tableOfContents: import { Tabs, TabItem, Steps } from '@astrojs/starlight/components'; -Trunk は Rust 用の WASM Web アプリ・バンドラーです。より詳しい説明は、公式サイト https://trunkrs.dev をご覧ください。以下の説明内容は、「Trunk バージョン 0.17.5」に準拠しています。  +Trunk(トランク)は Rust 用の WASM(ウェブアセンブリ)Web アプリ・バンドラーです。より詳しい説明は、公式サイト https://trunkrs.dev をご覧ください。以下の説明内容は、「Trunk バージョン 0.17.5」に準拠しています。  ## チェック項目 @@ -50,6 +50,7 @@ Trunk は Rust 用の WASM Web アプリ・バンドラーです。より詳し -

-【※ JP text based on EN Oct 01, 2024】 -

+
+【※ この日本語版は、「Oct 01, 2024 英語版」に基づいています】
+Doc-JP 2.00.00 +
diff --git a/src/content/docs/jp/start/frontend/vite.mdx b/src/content/docs/jp/start/frontend/vite.mdx index cf38b9c508..ea1b96b20d 100644 --- a/src/content/docs/jp/start/frontend/vite.mdx +++ b/src/content/docs/jp/start/frontend/vite.mdx @@ -136,6 +136,8 @@ Vite(ヴィート)は、 最新の Web プロジェクトで、より高速 -

-【※ JP text based on EN Nov 01, 2024】 -

+ +
+【※ この日本語版は、「Nov 01, 2024 英語版」に基づいています】
+Doc-JP 2.00.00 +
From 5bba6a3c2f5d541f7bc86cb12765929e75c911ee Mon Sep 17 00:00:00 2001 From: J1-takai Date: Wed, 8 Jan 2025 18:24:22 +0900 Subject: [PATCH 15/38] i18n (JP) Add JP translation --- src/content/docs/jp/doc-JP Rev Control.mdx | 12 ++++++++++++ .../docs/jp/start/migrate/from-tauri-1.mdx | 16 +++++++++------- .../docs/jp/start/migrate/from-tauri-2-beta.mdx | 10 ++++++---- src/content/docs/jp/start/migrate/index.mdx | 13 ++++++++----- 4 files changed, 35 insertions(+), 16 deletions(-) diff --git a/src/content/docs/jp/doc-JP Rev Control.mdx b/src/content/docs/jp/doc-JP Rev Control.mdx index ba78bb8fb5..eaeaa8c202 100644 --- a/src/content/docs/jp/doc-JP Rev Control.mdx +++ b/src/content/docs/jp/doc-JP Rev Control.mdx @@ -92,7 +92,19 @@ For the details of EN/JP doc status, see the listing below:
文書番号 | **00** | 2024/11/01 | **00** | 2025/01/07 | #### migrate/index.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/01 | **00** | 2025/01/08 | +#### migrate/from-tauri-1.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/13 | **00** | 2025/01/08 | + +#### migrate/from-tauri-2-beta.mdx +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/06 | **00** | 2025/01/08 | Cont. diff --git a/src/content/docs/jp/start/migrate/from-tauri-1.mdx b/src/content/docs/jp/start/migrate/from-tauri-1.mdx index b24a7e8ec7..6c5b9aeb49 100644 --- a/src/content/docs/jp/start/migrate/from-tauri-1.mdx +++ b/src/content/docs/jp/start/migrate/from-tauri-1.mdx @@ -63,7 +63,7 @@ Tauri v2 CLI には、移行作業の大部分を自動化する `migrate` コ cargo tauri migrate' /> -`migrate` コマンドの詳細については、[コマンドライン・インターフェース・リファレンス](/reference/cli/#migrate) を参照してください。 +`migrate` コマンドの詳細については、[コマンドライン・インターフェース・リファレンス](../reference/cli/#migrate) を参照してください。 ## 変更の概要 @@ -99,7 +99,7 @@ Tauri 1.0 から Tauri 2.0 への変更内容の概要は以下のとおりで - `build > distDir` を `frontendDist` に改称。 - `build > devPath` を `devUrl` に改称。 -[Tauri 2.0 設定 API レファレンス](/reference/config/) +[Tauri 2.0 設定 API レファレンス](../reference/config/) ### Cargo の新機能 @@ -1185,7 +1185,7 @@ Tauri バージョン 1(v1)では、外部バイナリとその引数は許 JavaScript 関連では、[Shell プラグインの移行](#shell-プラグインの移行) の内容を必ず実行して下さい。 -Rust 関連では、`tauri::api::process` API が削除されています。代わりに `tauri_plugin_shell::ShellExt` および `tauri_plugin_shell::process::CommandEvent` API を使用してください。使用法については、[外部バイナリの埋め込み](/develop/sidecar/#rust-から実行) ガイドを参照して下さい。 +Rust 関連では、`tauri::api::process` API が削除されています。代わりに `tauri_plugin_shell::ShellExt` および `tauri_plugin_shell::process::CommandEvent` API を使用してください。使用法については、[外部バイナリの埋め込み](../develop/sidecar/#rust-から実行) ガイドを参照して下さい。 「process-command-api」機能フラグは バージョン 2(v2)で削除されました。そのため、外部バイナリの実行に、この機能を Tauri 構成で定義する必要がなくなりました。 @@ -1198,8 +1198,10 @@ Rust 関連では、`tauri::api::process` API が削除されています。代 `migrate` CLI コマンドは、v1 許可リストを自動的に解析し、関連する機能ファイルを生成します。 -許可と機能の詳細については、[セキュリティ関連文書](/security/)を参照してください。 +許可と機能の詳細については、[セキュリティ関連文書](../security/)を参照してください。 + +
+【※ この日本語版は、「Nov 13, 2024 英語版」に基づいています】
+Doc-JP 2.00.00 +
-

-【※ JP text based on EN Nov 13, 2024】 -

diff --git a/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx b/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx index 8a5b1fbd2d..8951079bd7 100644 --- a/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx +++ b/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx @@ -25,7 +25,7 @@ Tauri v2 CLI には、移行作業の大部分を自動化する `migrate` コ cargo tauri migrate' /> -`migrate` コマンドの詳細については、[コマンドライン・インターフェース・リファレンス](/reference/cli/#migrate) を参照してください。 +`migrate` コマンドの詳細については、[コマンドライン・インターフェース・リファレンス](../reference/cli/#migrate) を参照してください。 ## 後方互換性のない変更点(Breaking Changes) @@ -151,6 +151,8 @@ export default defineConfig({ NPM パッケージの `internal-ip` は不要になりました。代わりに TAURI_DEV_HOST 値を直接使用できます。 ::: -

-【※ JP text based on EN Oct 06, 2024】 -

+ +
+【※ この日本語版は、「Oct 06, 2024 英語版」に基づいています】
+Doc-JP 2.00.00 +
diff --git a/src/content/docs/jp/start/migrate/index.mdx b/src/content/docs/jp/start/migrate/index.mdx index e24432db39..836ff19fba 100644 --- a/src/content/docs/jp/start/migrate/index.mdx +++ b/src/content/docs/jp/start/migrate/index.mdx @@ -12,16 +12,19 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components'; -

-【※ JP text based on EN Oct 01, 2024】 -

+ +
+【※ この日本語版は、「Oct 01, 2024 英語版」に基づいています】
+Doc-JP 2.00.00 +
+ From 3fe7e1f2aa44559d0640181075917e0d4612f944 Mon Sep 17 00:00:00 2001 From: J1-takai Date: Wed, 8 Jan 2025 22:09:41 +0900 Subject: [PATCH 16/38] i18n (JP) Add JP translation --- src/content/docs/jp/doc-JP Rev Control.mdx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/content/docs/jp/doc-JP Rev Control.mdx b/src/content/docs/jp/doc-JP Rev Control.mdx index eaeaa8c202..5d6d47b819 100644 --- a/src/content/docs/jp/doc-JP Rev Control.mdx +++ b/src/content/docs/jp/doc-JP Rev Control.mdx @@ -2,6 +2,13 @@ + Rev Status Control of Japanese Translation Documents
日本語訳文書の変更履歴メモ +## Basic Procedure of JP Translation(邦訳基本手順) + +1. Use On-line Translation for the inital translation.
オンライン翻訳にて初期翻訳。 +1. Checks on the auto-translation result. Inappropriate translations shall be corrected (such as "Tauri" - which is often translated as the name of the zodiac sign "the Bull").
自動翻訳の内容確認。f不適切な訳語は修正(例えば「牡牛座」と訳された "Tauri" など)。 +1. Products names, trade names and proper names such as Tauri, Windows, macOS etc. are shown as they are.
商品名、会社名、固有名詞などは、 +そのまま英語表記とする(必要に応じて括弧書きで「読み」を表示)。。 + ## Rev Numbering System Configuration: x.xx.xx Example Numbering(番号体系例): 2.00.01 @@ -15,7 +22,7 @@ For the details of EN/JP doc status, see the listing below:
文書番号 **NOTE** This Rv Control number is for JP translation purpose only and does not necessarily represent the actuarl revision history of each document.
**《注意》** この変更履歴番号は、日本語翻訳管理用であり、各文書の実際の変更履歴を反映しているものではありません。 -## EN/JP Doc Status list +## EN/JP Doc Status list(EN/JP 文書簡易比較表) ### Home From 42ef930cf8ce876debcb025de490163b6868f1db Mon Sep 17 00:00:00 2001 From: J1-takai Date: Sun, 19 Jan 2025 10:57:22 +0900 Subject: [PATCH 17/38] i18n(JP) Doc-JP correction --- src/content/docs/jp/doc-JP Rev Control.md | 176 +++++++++++++++++++++ src/content/docs/jp/doc-JP Rev Control.mdx | 117 -------------- 2 files changed, 176 insertions(+), 117 deletions(-) create mode 100644 src/content/docs/jp/doc-JP Rev Control.md delete mode 100644 src/content/docs/jp/doc-JP Rev Control.mdx diff --git a/src/content/docs/jp/doc-JP Rev Control.md b/src/content/docs/jp/doc-JP Rev Control.md new file mode 100644 index 0000000000..e283095153 --- /dev/null +++ b/src/content/docs/jp/doc-JP Rev Control.md @@ -0,0 +1,176 @@ +--- +title: Tauri Doc 日本語版 改訂記録メモ
Memorundom on Doc-JP Rev Control +--- + ++ Rev Status Control of Japanese Translation Documents
日本語訳文書の改訂履歴メモ + +## Basic Procedure of JP Translation(邦訳基本手順) + +1. Use On-line Translation for the inital translation.
オンライン翻訳にて初期翻訳。 +1. Checks on the auto-translation result. Inappropriate translations shall be corrected (such as "Tauri" - which is often translated as the name of the zodiac sign "the Bull").
自動翻訳の内容確認。f不適切な訳語は修正(例えば「牡牛座」と訳された "Tauri" など)。 +1. Products names, trade names and proper names such as Tauri, Windows, macOS etc. are shown as they are.
商品名、会社名、固有名詞などは、 +そのまま英語表記とする(必要に応じて括弧書きで「読み」を表示)。 +1. The technical terms shall be checked on the on-line terminology sites (Microsoft Terminology Search, etc.)
技術専門用語類は、オンライン用語検索サイト(マイクロソフト社等)に記載されている一般的なものを採用するが、カタカナ語に関しては適宜和語に置き換える倍もある。 + +## Rev Numbering System Configuration: x.xx.xx + +Example Numbering(番号体系例): 2.00.01 + ++ First Didit(最初の一桁)= Tauri Version: "2" --> Tauri 2.0(Tauri のバージョン) ++ Middle Digits(中央の二桁)= English Doc Status: "00" --> EN Doc Status #00(英語版文書番号) ++ Last Digits(最後の二桁) = JP Doc Status: "01" --> JP Doc Status #01(日本語文書番号) + +For the details of EN/JP doc status, see the listing below:
文書番号の詳細は以下のリストを参照して下さい。 + +**NOTE** This Rv Control number is for JP translation purpose only and does not necessarily represent the actuarl revision history of each document.
+**《注意》** この変更履歴番号は、日本語翻訳管理用であり、各文書の実際の変更履歴を反映しているものではありません。 + +## EN/JP Doc Status list(EN/JP 文書簡易比較表) + +### Home/Quick Start + +#### Index.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2025/01/01 | **00** | 2025/01/06 | + +#### 404. + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2025/01/01 | **00** | 2025/01/06 | + +#### rss. + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2025/01/01 | **00** | 2025/01/06 | + +### Quick Start + +#### start/index.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/01 | **00** | 2025/01/06 | + +#### start/prerequisites.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/17 | **00** | 2025/01/07 | + +#### start/create-project.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date| +| :---: | :--- | :---: | :--- | +| **00** | 2024/12/31 | **00** | 2025/01/07 | + +#### frontend/index.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/01 | **00** | 2025/01/07 | + +#### frontend/leptos. + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/01 | **00** | 2025/01/07 | + +#### frontend/nextjs.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/01 | **00** | 2025/01/07 | + +#### frontend/nuxt.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/01 | **00** | 2025/01/07 | + +#### frontend/qwik.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/01 | **00** | 2025/01/07 | + +#### frontend/sveltekit. + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date| +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/01 | **00** | 2025/01/07 | + +#### frontend/trunk.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/01 | **00** | 2025/01/07 | + +#### frontend/vite.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/01 | **00** | 2025/01/07 | + +#### migrate/index.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/01 | **00** | 2025/01/08 | + +#### migrate/from-tauri-1.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/13 | **00** | 2025/01/08 | + +#### migrate/from-tauri-2-beta.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/06 | **00** | 2025/01/08 | + +### Core Concepts + +### concept/index.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/01 | **00** | 2025/01/09 | + +### concept/architecture.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/11 | **00** | 2025/01/15 | + +### concept/process-model. + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/01 | **00** | 2025/01/16 | + +### concept/size.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/01 | **00** | 2025/01/16 | + +### concept/I-P-C/index.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/11/27 | **00** | 2025/01/18 | + +### concept/I-P-C/brownfield.mdx + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/01 | **00** | 2025/01/18 | + + + +Cont. diff --git a/src/content/docs/jp/doc-JP Rev Control.mdx b/src/content/docs/jp/doc-JP Rev Control.mdx deleted file mode 100644 index 5d6d47b819..0000000000 --- a/src/content/docs/jp/doc-JP Rev Control.mdx +++ /dev/null @@ -1,117 +0,0 @@ -# Memorundom on Doc-JP Rev Control - -+ Rev Status Control of Japanese Translation Documents
日本語訳文書の変更履歴メモ - -## Basic Procedure of JP Translation(邦訳基本手順) - -1. Use On-line Translation for the inital translation.
オンライン翻訳にて初期翻訳。 -1. Checks on the auto-translation result. Inappropriate translations shall be corrected (such as "Tauri" - which is often translated as the name of the zodiac sign "the Bull").
自動翻訳の内容確認。f不適切な訳語は修正(例えば「牡牛座」と訳された "Tauri" など)。 -1. Products names, trade names and proper names such as Tauri, Windows, macOS etc. are shown as they are.
商品名、会社名、固有名詞などは、 -そのまま英語表記とする(必要に応じて括弧書きで「読み」を表示)。。 - -## Rev Numbering System Configuration: x.xx.xx - -Example Numbering(番号体系例): 2.00.01 - -+ First Didit(最初の一桁)= Tauri Version: "2" --> Tauri 2.0(Tauri のバージョン) -+ Middle Digits(中央の二桁)= English Doc Status: "00" --> EN Doc Status #00(英語版文書番号) -+ Last Digits(最後の二桁) = JP Doc Status: "01" --> JP Doc Status #01(日本語文書番号) - -For the details of EN/JP doc status, see the listing below:
文書番号の詳細は以下のリストを参照して下さい。 - -**NOTE** This Rv Control number is for JP translation purpose only and does not necessarily represent the actuarl revision history of each document.
-**《注意》** この変更履歴番号は、日本語翻訳管理用であり、各文書の実際の変更履歴を反映しているものではありません。 - -## EN/JP Doc Status list(EN/JP 文書簡易比較表) - -### Home - -#### Index.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2025/01/01 | **00** | 2025/01/06 | - -#### 404.md -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2025/01/01 | **00** | 2025/01/06 | - -#### rss.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2025/01/01 | **00** | 2025/01/06 | - -### Quick Start - -#### start/index.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/01 | **00** | 2025/01/06 | - -#### start/prerequisites.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/17 | **00** | 2025/01/07 | - -#### start/create-project.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2024/12/31 | **00** | 2025/01/07 | - -#### frontend/index.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/01 | **00** | 2025/01/07 | - -#### frontend/leptos.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/01 | **00** | 2025/01/07 | - -#### frontend/nextjs.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/01 | **00** | 2025/01/07 | - -#### frontend/nuxt.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/01 | **00** | 2025/01/07 | - -#### frontend/qwik.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/01 | **00** | 2025/01/07 | - -#### frontend/sveltekit.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/01 | **00** | 2025/01/07 | - -#### frontend/trunk.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/01 | **00** | 2025/01/07 | - -#### frontend/vite.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/01 | **00** | 2025/01/07 | - -#### migrate/index.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/01 | **00** | 2025/01/08 | - -#### migrate/from-tauri-1.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/13 | **00** | 2025/01/08 | - -#### migrate/from-tauri-2-beta.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date : -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/06 | **00** | 2025/01/08 | - - -Cont. From 4baf09590a10cf7236370052f3f210d0ebf24b4f Mon Sep 17 00:00:00 2001 From: Vitor Ayres Date: Sat, 1 Feb 2025 11:53:24 -0300 Subject: [PATCH 18/38] fix summary tag --- src/content/docs/jp/start/prerequisites.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/docs/jp/start/prerequisites.mdx b/src/content/docs/jp/start/prerequisites.mdx index e81de2d9cf..6d57cc0a18 100644 --- a/src/content/docs/jp/start/prerequisites.mdx +++ b/src/content/docs/jp/start/prerequisites.mdx @@ -171,7 +171,8 @@ Tauri は [Xcode](https://developer.apple.com/xcode/resources/) とさまざま インストール後には、必ず Xcode を起動してセットアップを完了させてください。
-デスクトップ・アプリのみを開発する場合は、ここをクリック<../summary> +デスクトップ・アプリのみを開発する場合は、ここをクリック + もしデスクトップ・アプリのみを開発する予定で、iOS 用アプリを作成しないのであれば、上記の「Xcode」の代わりに、「Xcode コマンドライン・ツール」をインストールすることもできます。 ```sh From aa284a972e4879c94b7638d9aba610293f2907e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Junichi=20TAKAI=20=EF=BC=88=E3=81=9F=E3=81=8B=E3=81=84?= =?UTF-8?q?=E3=80=80=E3=81=98=E3=82=85=E3=82=93=E3=81=84=E3=81=A1=EF=BC=89?= Date: Mon, 3 Feb 2025 15:34:34 +0900 Subject: [PATCH 19/38] Update doc-JP Rev Control.md --- src/content/docs/jp/doc-JP Rev Control.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/content/docs/jp/doc-JP Rev Control.md b/src/content/docs/jp/doc-JP Rev Control.md index e283095153..1e84f36d67 100644 --- a/src/content/docs/jp/doc-JP Rev Control.md +++ b/src/content/docs/jp/doc-JP Rev Control.md @@ -29,19 +29,19 @@ For the details of EN/JP doc status, see the listing below:
文書番号の ### Home/Quick Start -#### Index.mdx +#### index.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | | :---: | :--- | :---: | :--- | | **00** | 2025/01/01 | **00** | 2025/01/06 | -#### 404. +#### 404.md | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | | :---: | :--- | :---: | :--- | | **00** | 2025/01/01 | **00** | 2025/01/06 | -#### rss. +#### rss.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | | :---: | :--- | :---: | :--- | @@ -73,7 +73,7 @@ For the details of EN/JP doc status, see the listing below:
文書番号の | :---: | :--- | :---: | :--- | | **00** | 2024/10/01 | **00** | 2025/01/07 | -#### frontend/leptos. +#### frontend/leptos.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | | :---: | :--- | :---: | :--- | @@ -147,7 +147,7 @@ For the details of EN/JP doc status, see the listing below:
文書番号の | :---: | :--- | :---: | :--- | | **00** | 2024/11/11 | **00** | 2025/01/15 | -### concept/process-model. +### concept/process-model.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | | :---: | :--- | :---: | :--- | From 6e1052e336f374f67021ab0999c4ca727b53824e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Junichi=20TAKAI=20=EF=BC=88=E3=81=9F=E3=81=8B=E3=81=84?= =?UTF-8?q?=E3=80=80=E3=81=98=E3=82=85=E3=82=93=E3=81=84=E3=81=A1=EF=BC=89?= Date: Mon, 3 Feb 2025 16:24:04 +0900 Subject: [PATCH 20/38] Update prerequisites.mdx --- src/content/docs/jp/start/prerequisites.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/docs/jp/start/prerequisites.mdx b/src/content/docs/jp/start/prerequisites.mdx index 6d57cc0a18..ac910780cf 100644 --- a/src/content/docs/jp/start/prerequisites.mdx +++ b/src/content/docs/jp/start/prerequisites.mdx @@ -102,6 +102,7 @@ sudo zypper in -t pattern devel_basis + ```sh sudo apk add \ build-base \ From 54a23f6d821bcdded30bd3f0cc2520f65ee920e4 Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Tue, 4 Feb 2025 13:56:54 -0300 Subject: [PATCH 21/38] wip: fix building + broken links + urls --- src/content/docs/jp/start/create-project.mdx | 12 ++-- src/content/docs/jp/start/frontend/index.mdx | 2 +- src/content/docs/jp/start/index.mdx | 16 ++--- .../docs/jp/start/migrate/from-tauri-1.mdx | 66 +++++++++---------- .../jp/start/migrate/from-tauri-2-beta.mdx | 2 +- src/content/docs/jp/start/prerequisites.mdx | 12 ++-- 6 files changed, 55 insertions(+), 55 deletions(-) diff --git a/src/content/docs/jp/start/create-project.mdx b/src/content/docs/jp/start/create-project.mdx index 8b6f3f0821..0b6f31f1bc 100644 --- a/src/content/docs/jp/start/create-project.mdx +++ b/src/content/docs/jp/start/create-project.mdx @@ -26,7 +26,7 @@ Tauri が非常に柔軟である理由の1つは、事実上どのような :::tip[どれを選べばよいのか判りませんか?] {/* TODO: redirect to integrate to existing front-end project specific docs */} -はじめての場合には、「vanilla」テンプレート(HTML、CSS、および JavaScript/フレームワークなし)を利用してプロジェクトを開始することをお薦めします。いつでも、後から、[フロントエンドのフレームワークを統合](/start/create-project/) できます。 +はじめての場合には、「vanilla」テンプレート(HTML、CSS、および JavaScript/フレームワークなし)を利用してプロジェクトを開始することをお薦めします。いつでも、後から、[フロントエンドのフレームワークを統合](/jp/start/create-project/) できます。 - どの言語をフロントエンドで使用するかを選択: `TypeScript / JavaScript` - パッケージ・マネージャーを選択: `pnpm` @@ -108,7 +108,7 @@ Tauri が非常に柔軟である理由の1つは、事実上どのような #### 開発サーバーの起動 -`create-tauri-app` で設定後、プロジェクト・フォルダーに移動して依存関係をインストールしたら、 [Tauri CLI](../reference/cli/) (コマンドライン・インターフェース)を使用して開発サーバーを起動します。 +`create-tauri-app` で設定後、プロジェクト・フォルダーに移動して依存関係をインストールしたら、 [Tauri CLI](/jp/reference/cli/) (コマンドライン・インターフェース)を使用して開発サーバーを起動します。 import CommandTabs from '@components/CommandTabs.astro'; @@ -214,10 +214,10 @@ import CommandTabs from '@components/CommandTabs.astro'; ## 次のステップは… -- [フロントエンドの設定について](../start/frontend/) -- [Tauri コマンドライン・インターフェイスについて](../reference/cli/) -- [Tauri アプリの作り方について](../develop/) -- [Tauri 拡張のための追加機能について](../plugin/) +- [フロントエンドの設定について](/jp/start/frontend/) +- [Tauri コマンドライン・インターフェイスについて](/jp/reference/cli/) +- [Tauri アプリの作り方について](/jp/develop/) +- [Tauri 拡張のための追加機能について](jp/plugin/)
diff --git a/src/content/docs/jp/start/frontend/index.mdx b/src/content/docs/jp/start/frontend/index.mdx index ab3668789f..ce4c20520e 100644 --- a/src/content/docs/jp/start/frontend/index.mdx +++ b/src/content/docs/jp/start/frontend/index.mdx @@ -51,7 +51,7 @@ Tauri はフロントエンドに依存せず、ほとんどのフロントエ :::tip[リストにフレームワークが見つからない?] -目的のフレームワークがリストに載っていない? それは、追加設定不要で Tauri で動作するフレームワークだからかもしれません。一般的な設定については、[設定チェックリスト](../start/frontend/#設定チェックリスト)の項を参照してください。 +目的のフレームワークがリストに載っていない? それは、追加設定不要で Tauri で動作するフレームワークだからかもしれません。一般的な設定については、[設定チェックリスト](/jp/start/frontend/#設定チェックリスト)の項を参照してください。 ::: diff --git a/src/content/docs/jp/start/index.mdx b/src/content/docs/jp/start/index.mdx index 20552e67b6..faf1e42915 100644 --- a/src/content/docs/jp/start/index.mdx +++ b/src/content/docs/jp/start/index.mdx @@ -7,13 +7,13 @@ sidebar: Tauri は、主要なデスクトップおよびモバイル・プラットフォームのすべてで、軽量・高速なバイナリ・ファイルを構築できるフレームワーク(仕組み)です。フロントエンドには、HTML、JavaScript、CSS にコンパイルされるフレームワークを利用してユーザー・エクスペリエンス(UX)を構築し、バックエンドの処理ロジックには、必要に応じて Rust、Swift、Kotlin などの言語を活用できます。 -以下のシェル・コマンド(Bash、PowerShell、…)のいずれかを使用して、「Tauri アプリを作成する」[`create-tauri-app`](https://github.com/tauri-apps/create-tauri-app) を始める準備をしましょう。まず「必須事項ガイド」[prerequisites guide](../start/prerequisites/) に従って、Tauri に必要なすべての「依存関係」をインストールし、次に推奨されるフロントエンド構成についての「フロントエンド構成ガイド」[Frontend Configuration guides](../start/frontend/) を参照してください。 +以下のシェル・コマンド(Bash、PowerShell、…)のいずれかを使用して、「Tauri アプリを作成する」[`create-tauri-app`](https://github.com/tauri-apps/create-tauri-app) を始める準備をしましょう。まず「必須事項ガイド」[prerequisites guide](/jp/start/prerequisites/) に従って、Tauri に必要なすべての「依存関係」をインストールし、次に推奨されるフロントエンド構成についての「フロントエンド構成ガイド」[Frontend Configuration guides](/jp/start/frontend/) を参照してください。 -import Cta from '../_fragments/cta.mdx'; +import Cta from '@fragments/cta.mdx'; -最初のアプリを作成した後、「機能と使用例のリスト」 [List of Features & Recipes](../plugin/) の章で Tauri のそのほかの機能や使い方を調べることができます。 +最初のアプリを作成した後、「機能と使用例のリスト」 [List of Features & Recipes](/jp/plugin/) の章で Tauri のそのほかの機能や使い方を調べることができます。 ## Tauri の利点 @@ -23,7 +23,7 @@ Tauri には、プログラム開発者が拠り所とできる三つの大き - システム本体の Web ビューを使用することによるでバンドルサイズの軽量化 - 任意のフロントエンド技術の利用や複数のコンピュータ言語を統合できる柔軟性 -Tauri の根本思想については、「Tauri 1.0 ブログ [Tauri 1.0 blog post](../blog/tauri-1-0/)」を参照してください。 +Tauri の根本思想については、「Tauri 1.0 ブログ [Tauri 1.0 blog post](/jp/blog/tauri-1-0/)」を参照してください。 ### 安全なプログラム基盤 @@ -37,17 +37,17 @@ Tauri は、「Rust」を用いて構築されていますので、Rust が提 Tauri アプリは、すでにユーザー・システムに搭載されている Web ビューを利用しています。したがって、どの Tauri アプリも、そのアプリに必要なコードとデータ資産のみを含み、アプリ内にブラウザ・エンジンを同梱する必要がありません。このことは、つまり、最小の Tauri アプリは 600 KB 以下のサイズになりうることを意味しています。 -最適化されたアプリの作成の仕方については、「アプリ・サイズの考え方 [App Size concept](../concept/size/) をご覧ください。 +最適化されたアプリの作成の仕方については、「アプリ・サイズの考え方 [App Size concept](/jp/concept/size/) をご覧ください。 ### 柔軟性のある基本仕様 -Tauri は ウェブ技術を利用していますので、事実上どのフロントエンド技術も Tauri と互換性があります。「フロントエンド構成ガイド [Frontend Configuration guide](../start/frontend/) 」では、良く用いられるフロントエンド技術の一般的な構成例を記載しています。 +Tauri は ウェブ技術を利用していますので、事実上どのフロントエンド技術も Tauri と互換性があります。「フロントエンド構成ガイド [Frontend Configuration guide](/jp/start/frontend/) 」では、良く用いられるフロントエンド技術の一般的な構成例を記載しています。 -JavaScript 部分と Rust 部分間の結合には、JavaScript の「`invoke`(呼出し)」関数が、Swift や Kotlin との結合には「[Tauri Plugins](../develop/plugins/)(Tauri プラグイン)」が利用できます。 +JavaScript 部分と Rust 部分間の結合には、JavaScript の「`invoke`(呼出し)」関数が、Swift や Kotlin との結合には「[Tauri Plugins](/jp/develop/plugins/)(Tauri プラグイン)」が利用できます。 [TAO](https://github.com/tauri-apps/tao) は Tauri のウィンドウ生成を、[WRY](https://github.com/tauri-apps/wry) はウェブ表示のレンダリングを行なうプラグインです。このようなプラグインは Tauri によって管理されているライブラリで、Tauri が対応できる以上の、より進んだシステム統合が必要な場合に直接使用できます。 -加えて、Tauri には、Tauri 本体が対応できる機能を拡張する多くのプラグインもあります。このようなプラグインは、コミュニティによって提供されているプラグインと並んで、「プラグイン [Plugins section](../plugin/)」のセクションで見つけることができます。 +加えて、Tauri には、Tauri 本体が対応できる機能を拡張する多くのプラグインもあります。このようなプラグインは、コミュニティによって提供されているプラグインと並んで、「プラグイン [Plugins section](/jp/plugin/)」のセクションで見つけることができます。
diff --git a/src/content/docs/jp/start/migrate/from-tauri-1.mdx b/src/content/docs/jp/start/migrate/from-tauri-1.mdx index 6c5b9aeb49..91a364e8e3 100644 --- a/src/content/docs/jp/start/migrate/from-tauri-1.mdx +++ b/src/content/docs/jp/start/migrate/from-tauri-1.mdx @@ -63,7 +63,7 @@ Tauri v2 CLI には、移行作業の大部分を自動化する `migrate` コ cargo tauri migrate' /> -`migrate` コマンドの詳細については、[コマンドライン・インターフェース・リファレンス](../reference/cli/#migrate) を参照してください。 +`migrate` コマンドの詳細については、[コマンドライン・インターフェース・リファレンス](/jp/reference/cli/#migrate) を参照してください。 ## 変更の概要 @@ -83,7 +83,7 @@ Tauri 1.0 から Tauri 2.0 への変更内容の概要は以下のとおりで - `tauri > updater > dialog` を削除。 - `tauri > updater` を `plugins > updater` へ移動。 - `bundle > createUpdaterArtifacts` を追加。アプリ・アップデーターを使用する場合には設定する必要があります。 - - すでに配布されている v1 アプリをアップグレードする場合は、これを `v1compatible` に設定してください。詳しくは [アップデーター・ガイド](/plugin/updater/) を参照してください。 + - すでに配布されている v1 アプリをアップグレードする場合は、これを `v1compatible` に設定してください。詳しくは [アップデーター・ガイド](/jp/plugin/updater/) を参照してください。 - `tauri > systemTray` を `app > trayIcon` に改称。 - `tauri > pattern` を `app > security > pattern` へ移動。 - `tauri > bundle` をトップレベルへ移動。 @@ -99,7 +99,7 @@ Tauri 1.0 から Tauri 2.0 への変更内容の概要は以下のとおりで - `build > distDir` を `frontendDist` に改称。 - `build > devPath` を `devUrl` に改称。 -[Tauri 2.0 設定 API レファレンス](../reference/config/) +[Tauri 2.0 設定 API レファレンス](/jp/reference/config/) ### Cargo の新機能 @@ -119,45 +119,45 @@ Tauri 1.0 から Tauri 2.0 への変更内容の概要は以下のとおりで ### Rust クレートの変更点 - `api` モジュールは削除されました。各 API モジュールは、「Tauri プラグイン」にある移行先を参照してください。 -- `api::dialog` モジュールは削除されました。代わりに `tauri-plugin-dialog` を使用して下さい。 [移行先](#migrate-to-dialog-plugin) -- `api::file` モジュールは削除されました。代わりに、Rust の [`std::fs`](https://doc.rust-lang.org/std/fs/) を使用して下さい。 -- `api::http` モジュールは削除されました。代わりに `tauri-plugin-http` を使用して下さい。 [移行先](#migrate-to-http-plugin) +- `api::dialog` モジュールは削除されました。代わりに `tauri-plugin-dialog` を使用して下さい。 [移行先](#dialog-プラグインの移行) +- `api::file` モジュールは削除されました。代わりに、Rust の [`std::fs`](https://doc.rust-lang.org/std/fs/) を使用して下さい。 +- `api::http` モジュールは削除されました。代わりに `tauri-plugin-http` を使用して下さい。 [移行先](#http-プラグインの移行) - `api::ip` モジュールは書き直され、`tauri::ipc` に移動しました。新しい API群、特に `tauri::ipc::Channel` を確認してください。 -- `api::path` モジュール機能と `tauri::PathResolved` は `tauri::Manager::path` へ移動しました。 [移行先](#migrate-path-to-tauri-manager) -- `api::process::Command`、`tauri::api::shell` および `tauri::Manager::shell_scope` の各 API は削除されました。代わりに `tauri-plugin-shell` を使用してください。 [移行先](#migrate-to-shell-plugin) +- `api::path` モジュール機能と `tauri::PathResolved` は `tauri::Manager::path` へ移動しました。 [移行先](#Path-to-Tauri-Manager-の移行) +- `api::process::Command`、`tauri::api::shell` および `tauri::Manager::shell_scope` の各 API は削除されました。代わりに `tauri-plugin-shell` を使用してください。 [移行先](#Shell プラグインの移行) - `api::process::current_binary` および `tauri::api::process::restart` は `tauri::process` へ移動しました。 - `api::version` モジュールは削除されました。代わりに [semver crate](https://docs.rs/semver/latest/semver/) を使用して下さい。 -- `App::clipboard_manager` および `AppHandle::clipboard_manager` は削除されました。代わりに `tauri-plugin-clipboard` を使用してください。 [移行先](#migrate-to-clipboard-plugin) -- `App::get_cli_matches` は削除されました。代わりに `tauri-plugin-cli` を使用して下さい。 [移行先](#migrate-to-cli-plugin) -- `App::global_shortcut_manager` および `AppHandle::global_shortcut_manager` は削除されました。代わりに `tauri-plugin-global-shortcut` を使用して下さい。 [移行先](#migrate-to-global-shortcut-plugin) -- `Manager::fs_scope` は削除されました。「ファイル・システム・スコープ」は `tauri_plugin_fs::FsExt` 経由でアクセス可能です。 +- `App::clipboard_manager` および `AppHandle::clipboard_manager` は削除されました。代わりに `tauri-plugin-clipboard` を使用してください。 [移行先](#clipboard-プラグインの移行) +- `App::get_cli_matches` は削除されました。代わりに `tauri-plugin-cli` を使用して下さい。 [移行先](#cli-プラグインの移行) +- `App::global_shortcut_manager` および `AppHandle::global_shortcut_manager` は削除されました。代わりに `tauri-plugin-global-shortcut` を使用して下さい。 [移行先](#global-shortcut-プラグインの移行) +- `Manager::fs_scope` は削除されました。「ファイル・システム・スコープ」は `tauri_plugin_fs::FsExt` 経由でアクセス可能です。 - `Plugin::PluginApi` は、プラグイン設定を2番目の引数として受け取るようになりました。 - `Plugin::setup_with_config` は削除されました。代わりに最新の `tauri::Plugin::PluginApi` を使用して下さい。 - `scope::ipc::RemoteDomainAccessScope::enable_tauri_api` および `scope::ipc::RemoteDomainAccessScope::enables_tauri_api` は削除されました。代わりに `scope::ipc::RemoteDomainAccessScope::add_plugin` 経由で各コア・プラグインを個々に有効化してください。 - `scope::IpcScope` は削除されました。代わりに `scope::ipc::Scope` を使用してください。 - `scope::FsScope`、`scope::GlobPattern` および `scope::FsScopeEvent` は削除されました。それぞれ、`scope::fs::Scope`、`scope::fs::Pattern` および `scope::fs::Event` を使用して下さい。 -- `updater` モジュールは削除されました。代わりに `tauri-plugin-updater` を使用して下さい。[移行先](#migrate-to-updater-plugin) +- `updater` モジュールは削除されました。代わりに `tauri-plugin-updater` を使用して下さい。[移行先](#Updater-プラグインの移行) - `Env.args` フィールドは削除されました。代わりに `Env.args_os` フィールドを使用して下さい。 -- `Menu`、`MenuEvent`、`CustomMenuItem`、`Submenu`、`WindowMenuEvent`、`MenuItem` および `Builder::on_menu_event` の各 API は削除されました。[移行先](#migrate-to-menu) -- `SystemTray`、`SystemTrayHandle`、`SystemTrayMenu`、`SystemTrayMenuItemHandle`、`SystemTraySubmenu`、`MenuEntry` および `SystemTrayMenuItem` の各 API は削除されました。[移行先](#migrate-to-tray-icon-module) +- `Menu`、`MenuEvent`、`CustomMenuItem`、`Submenu`、`WindowMenuEvent`、`MenuItem` および `Builder::on_menu_event` の各 API は削除されました。[移行先](#Menu-モジュールの移行) +- `SystemTray`、`SystemTrayHandle`、`SystemTrayMenu`、`SystemTrayMenuItemHandle`、`SystemTraySubmenu`、`MenuEntry` および `SystemTrayMenuItem` の各 API は削除されました。[移行先](#Tray-Icon-モジュールの移行) ### JavaScript API の変更点 `@tauri-apps/api` パッケージは、コア以外のモジュールを提供しなくなりました。これまでの `tauri` (現行では `core`)、`path`、`event`、`window` の各モジュールのみがエクスポートされます。その他はすべてプラグインに移動されました。 -- `@tauri-apps/api/tauri` モジュールは `@tauri-apps/api/core` に改称されました。[移行先](#migrate-to-core-module) -- `@tauri-apps/api/cli` モジュールは削除されました。代わりに `@tauri-apps/plugin-cli` を使用して下さい。[移行先](#migrate-to-cli-plugin) -- `@tauri-apps/api/clipboard` モジュールは削除されました。代わりに `@tauri-apps/plugin-clipboard` を使用して下さい。[移行先](#migrate-to-clipboard-plugin) -- `@tauri-apps/api/dialog` モジュールは削除されました。代わりに `@tauri-apps/plugin-dialog` を使用して下さい。[移行先](#migrate-to-dialog-plugin) -- `@tauri-apps/api/fs` モジュールは削除されました。代わりに `@tauri-apps/plugin-fs` を使用して下さい。[移行先](#migrate-to-file-system-plugin) -- `@tauri-apps/api/global-shortcut` モジュールは削除されました。代わりに `@tauri-apps/plugin-global-shortcut` を使用して下さい。[移行先](#migrate-to-global-shortcut-plugin) -- `@tauri-apps/api/http` モジュールは削除されました。代わりに `@tauri-apps/plugin-http` を使用してください。[移行先](#migrate-to-http-plugin) -- `@tauri-apps/api/os` モジュールは削除されました。代わりに `@tauri-apps/plugin-os` を使用して下さい。[移行先](#migrate-to-os-plugin) -- `@tauri-apps/api/notification` モジュールは削除されました。代わりに `@tauri-apps/plugin-notification` を使用して下さい。[移行先](#migrate-to-notification-plugin) -- `@tauri-apps/api/process` モジュールは削除されました。代わりに `@tauri-apps/plugin-process` を使用して下さい。[移行先](#migrate-to-process-plugin) -- `@tauri-apps/api/shell` モジュールは削除されました。代わりに `@tauri-apps/plugin-shell` を使用して下さい。[移行先](#migrate-to-shell-plugin) -- `@tauri-apps/api/updater` モジュールは削除されました。代わりに `@tauri-apps/plugin-updater` を使用してください。[移行先](#migrate-to-updater-plugin) -- `@tauri-apps/api/window` モジュールは `@tauri-apps/api/webviewWindow` に改称されました。[移行先](#migrate-to-new-window-api) +- `@tauri-apps/api/tauri` モジュールは `@tauri-apps/api/core` に改称されました。[移行先](#コアモジュールの移行) +- `@tauri-apps/api/cli` モジュールは削除されました。代わりに `@tauri-apps/plugin-cli` を使用して下さい。[移行先](#cli-プラグインの移行) +- `@tauri-apps/api/clipboard` モジュールは削除されました。代わりに `@tauri-apps/plugin-clipboard` を使用して下さい。[移行先](#clipboard-プラグインの移行) +- `@tauri-apps/api/dialog` モジュールは削除されました。代わりに `@tauri-apps/plugin-dialog` を使用して下さい。[移行先](#dialog-プラグインの移行) +- `@tauri-apps/api/fs` モジュールは削除されました。代わりに `@tauri-apps/plugin-fs` を使用して下さい。[移行先](#file-System-プラグインの移行) +- `@tauri-apps/api/global-shortcut` モジュールは削除されました。代わりに `@tauri-apps/plugin-global-shortcut` を使用して下さい。[移行先](#global-shortcut-プラグインの移行) +- `@tauri-apps/api/http` モジュールは削除されました。代わりに `@tauri-apps/plugin-http` を使用してください。[移行先](#http-プラグインの移行) +- `@tauri-apps/api/os` モジュールは削除されました。代わりに `@tauri-apps/plugin-os` を使用して下さい。[移行先](#OS-プラグインの移行) +- `@tauri-apps/api/notification` モジュールは削除されました。代わりに `@tauri-apps/plugin-notification` を使用して下さい。[移行先](#notification-プラグインの移行) +- `@tauri-apps/api/process` モジュールは削除されました。代わりに `@tauri-apps/plugin-process` を使用して下さい。[移行先](#Process-プラグインの移行) +- `@tauri-apps/api/shell` モジュールは削除されました。代わりに `@tauri-apps/plugin-shell` を使用して下さい。[移行先](#Shell-プラグインの移行) +- `@tauri-apps/api/updater` モジュールは削除されました。代わりに `@tauri-apps/plugin-updater` を使用してください。[移行先](#Updater-プラグインの移行) +- `@tauri-apps/api/window` モジュールは `@tauri-apps/api/webviewWindow` に改称されました。[移行先](#新しい-Window-API-への移行) バージョン 1 のプラグインは、`@tauri-apps/plugin-` として公開されています。これは、以前には git から `tauri-plugin--api` として入手可能だったものです。 @@ -1145,7 +1145,7 @@ fn main() { -### Path to Tauri Manger の移行 +### Path to Tauri Manager の移行 Rust の `tauri::api::path` モジュール機能および `tauri::PathResolver` は `tauri::Manager::path` に移動されました: @@ -1166,7 +1166,7 @@ tauri::Builder::default() Rust 関連では、`Window` の名称が `WebviewWindow` に、そのビルダー名 `WindowBuilder` が `WebviewWindowBuilder` に、`WindowUrl` の名称が `WebviewUrl` に変更されました。 -さらには、上位の「ウィンドウ 親 API」をサポートするために、`Manager::get_window` 関数は `get_webview_window`に、ウィンドウズの `parent_window` API が `parent_raw` に改称されています。 +さらには、上位の「ウィンドウ 親 API」をサポートするために、`Manager::get_window` 関数は `get_webview_window`に、ウィンドウズの `parent_window` API が `parent_raw` に改称されています。 JavaScript 関連では、`WebviewWindow` クラスが `@tauri-apps/api/webviewWindow` パスにエクスポートされるようになりました。 @@ -1174,7 +1174,7 @@ JavaScript 関連では、`WebviewWindow` クラスが `@tauri-apps/api/webviewW ### 埋め込み追加ファイルの移行(リソース) -JavaScript 関連では、[File System プラグインの移行](#file-system-プラグインの移行) を実行することを忘れないでください。 +JavaScript 関連では、[File System プラグインの移行](#file-System-プラグインの移行) を実行することを忘れないでください。 さらに、[許可の移行](#許可の移行) の項で、「バージョン 1」許可リストに加えられた変更の内容にも注意してください。 Rust 関連では、[Path to Tauri Manger の移行](#path-to-tauri-manager-の移行) の説明内容を必ず実行してください。 @@ -1185,7 +1185,7 @@ Tauri バージョン 1(v1)では、外部バイナリとその引数は許 JavaScript 関連では、[Shell プラグインの移行](#shell-プラグインの移行) の内容を必ず実行して下さい。 -Rust 関連では、`tauri::api::process` API が削除されています。代わりに `tauri_plugin_shell::ShellExt` および `tauri_plugin_shell::process::CommandEvent` API を使用してください。使用法については、[外部バイナリの埋め込み](../develop/sidecar/#rust-から実行) ガイドを参照して下さい。 +Rust 関連では、`tauri::api::process` API が削除されています。代わりに `tauri_plugin_shell::ShellExt` および `tauri_plugin_shell::process::CommandEvent` API を使用してください。使用法については、[外部バイナリの埋め込み](/jp/develop/sidecar/#rust-から実行) ガイドを参照して下さい。 「process-command-api」機能フラグは バージョン 2(v2)で削除されました。そのため、外部バイナリの実行に、この機能を Tauri 構成で定義する必要がなくなりました。 @@ -1198,7 +1198,7 @@ Rust 関連では、`tauri::api::process` API が削除されています。代 `migrate` CLI コマンドは、v1 許可リストを自動的に解析し、関連する機能ファイルを生成します。 -許可と機能の詳細については、[セキュリティ関連文書](../security/)を参照してください。 +許可と機能の詳細については、[セキュリティ関連文書](/jp/security/)を参照してください。
【※ この日本語版は、「Nov 13, 2024 英語版」に基づいています】
diff --git a/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx b/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx index 8951079bd7..d4c6b2fd00 100644 --- a/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx +++ b/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx @@ -25,7 +25,7 @@ Tauri v2 CLI には、移行作業の大部分を自動化する `migrate` コ cargo tauri migrate' /> -`migrate` コマンドの詳細については、[コマンドライン・インターフェース・リファレンス](../reference/cli/#migrate) を参照してください。 +`migrate` コマンドの詳細については、[コマンドライン・インターフェース・リファレンス](/jp/reference/cli/#migrate) を参照してください。 ## 後方互換性のない変更点(Breaking Changes) diff --git a/src/content/docs/jp/start/prerequisites.mdx b/src/content/docs/jp/start/prerequisites.mdx index ac910780cf..17291fab46 100644 --- a/src/content/docs/jp/start/prerequisites.mdx +++ b/src/content/docs/jp/start/prerequisites.mdx @@ -258,7 +258,7 @@ rustup default stable-msvc **変更を有効にするために、必ずターミナル (場合によってはシステム本体) を再起動してください。** -次のステップ: Android および iOS 向けの開発を行なう場合は [モバイル関連の設定](#モバイル関連の設定) を、あるいは、JavaScript を使用する場合は [Node のインストール](#nodejs) を実行してください。それ以外の場合は、次章 [プロジェクトの作成](../start/create-project/) に進んでください。 +次のステップ: Android および iOS 向けの開発を行なう場合は [モバイル関連の設定](#モバイル関連の設定) を、あるいは、JavaScript を使用する場合は [Node のインストール](#nodejs) を実行してください。それ以外の場合は、次章 [プロジェクトの作成](/jp/start/create-project/) に進んでください。 ## Node.js @@ -281,7 +281,7 @@ npm -v 「npm」が Node.js のデフォルト・パッケージ・マネージャーですが、「pnpm」や「yarn」といった別のパッケージ・マネージャーを使うこともできます。こうしたパッケージ・マネージャーを有効化するには、ターミナルにて `corepack enable` を実行してください。この処理ステップは、「npm」以外のパッケージ・マネージャーを使いたい場合にのみに必要な、任意項目です。 -次のステップ: [モバイル関連の設定](#モバイル関連の設定) または [プロジェクトの作成](../start/create-project/) です。 +次のステップ: [モバイル関連の設定](#モバイル関連の設定) または [プロジェクトの作成](/jp/start/create-project/) です。 ## モバイル関連の設定 @@ -375,7 +375,7 @@ PowerShell は、再起動またはログアウトするまで、新しい環境 rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android ```` -次のステップ: [iOS 用の設定](#ios) または [プロジェクトの作成](../start/create-project/)。 +次のステップ: [iOS 用の設定](#ios) または [プロジェクトの作成](/jp/start/create-project/)。 ### iOS @@ -401,15 +401,15 @@ rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim brew install cocoapods ``` -次のステップ: [プロジェクトの作成](../start/create-project/). +次のステップ: [プロジェクトの作成](/jp/start/create-project/). ## 問題が発生したら -インストール中に何か問題が発生したら、「[トラブルシューティングに関する項目](../develop/debug/)」を参照するか、「[Tauri コミュニティー](https://discord.com/invite/tauri)」に問い合わせてみてください。 +インストール中に何か問題が発生したら、「[トラブルシューティングに関する項目](/jp/develop/debug/)」を参照するか、「[Tauri コミュニティー](https://discord.com/invite/tauri)」に問い合わせてみてください。 -すべての必要事項をインストールし終えましたので、これで [はじめての Tauri プログラム](../start/create-project/) を作成する準備が整いました! +すべての必要事項をインストールし終えましたので、これで [はじめての Tauri プログラム](/jp/start/create-project/) を作成する準備が整いました! From 26e8a34732a48b6e46eabf53b19c5d4e0ba7967b Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Tue, 4 Feb 2025 14:22:24 -0300 Subject: [PATCH 22/38] fix hashes --- .../docs/jp/start/migrate/from-tauri-1.mdx | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/content/docs/jp/start/migrate/from-tauri-1.mdx b/src/content/docs/jp/start/migrate/from-tauri-1.mdx index 91a364e8e3..ce43c28e76 100644 --- a/src/content/docs/jp/start/migrate/from-tauri-1.mdx +++ b/src/content/docs/jp/start/migrate/from-tauri-1.mdx @@ -123,7 +123,7 @@ Tauri 1.0 から Tauri 2.0 への変更内容の概要は以下のとおりで - `api::file` モジュールは削除されました。代わりに、Rust の [`std::fs`](https://doc.rust-lang.org/std/fs/) を使用して下さい。 - `api::http` モジュールは削除されました。代わりに `tauri-plugin-http` を使用して下さい。 [移行先](#http-プラグインの移行) - `api::ip` モジュールは書き直され、`tauri::ipc` に移動しました。新しい API群、特に `tauri::ipc::Channel` を確認してください。 -- `api::path` モジュール機能と `tauri::PathResolved` は `tauri::Manager::path` へ移動しました。 [移行先](#Path-to-Tauri-Manager-の移行) +- `api::path` モジュール機能と `tauri::PathResolved` は `tauri::Manager::path` へ移動しました。 [移行先](#path-to-tauri-manager-の移行) - `api::process::Command`、`tauri::api::shell` および `tauri::Manager::shell_scope` の各 API は削除されました。代わりに `tauri-plugin-shell` を使用してください。 [移行先](#Shell プラグインの移行) - `api::process::current_binary` および `tauri::api::process::restart` は `tauri::process` へ移動しました。 - `api::version` モジュールは削除されました。代わりに [semver crate](https://docs.rs/semver/latest/semver/) を使用して下さい。 @@ -136,10 +136,10 @@ Tauri 1.0 から Tauri 2.0 への変更内容の概要は以下のとおりで - `scope::ipc::RemoteDomainAccessScope::enable_tauri_api` および `scope::ipc::RemoteDomainAccessScope::enables_tauri_api` は削除されました。代わりに `scope::ipc::RemoteDomainAccessScope::add_plugin` 経由で各コア・プラグインを個々に有効化してください。 - `scope::IpcScope` は削除されました。代わりに `scope::ipc::Scope` を使用してください。 - `scope::FsScope`、`scope::GlobPattern` および `scope::FsScopeEvent` は削除されました。それぞれ、`scope::fs::Scope`、`scope::fs::Pattern` および `scope::fs::Event` を使用して下さい。 -- `updater` モジュールは削除されました。代わりに `tauri-plugin-updater` を使用して下さい。[移行先](#Updater-プラグインの移行) +- `updater` モジュールは削除されました。代わりに `tauri-plugin-updater` を使用して下さい。[移行先](#updater-プラグインの移行) - `Env.args` フィールドは削除されました。代わりに `Env.args_os` フィールドを使用して下さい。 -- `Menu`、`MenuEvent`、`CustomMenuItem`、`Submenu`、`WindowMenuEvent`、`MenuItem` および `Builder::on_menu_event` の各 API は削除されました。[移行先](#Menu-モジュールの移行) -- `SystemTray`、`SystemTrayHandle`、`SystemTrayMenu`、`SystemTrayMenuItemHandle`、`SystemTraySubmenu`、`MenuEntry` および `SystemTrayMenuItem` の各 API は削除されました。[移行先](#Tray-Icon-モジュールの移行) +- `Menu`、`MenuEvent`、`CustomMenuItem`、`Submenu`、`WindowMenuEvent`、`MenuItem` および `Builder::on_menu_event` の各 API は削除されました。[移行先](#menu-モジュールの移行) +- `SystemTray`、`SystemTrayHandle`、`SystemTrayMenu`、`SystemTrayMenuItemHandle`、`SystemTraySubmenu`、`MenuEntry` および `SystemTrayMenuItem` の各 API は削除されました。[移行先](#tray-icon-モジュールの移行) ### JavaScript API の変更点 @@ -149,15 +149,15 @@ Tauri 1.0 から Tauri 2.0 への変更内容の概要は以下のとおりで - `@tauri-apps/api/cli` モジュールは削除されました。代わりに `@tauri-apps/plugin-cli` を使用して下さい。[移行先](#cli-プラグインの移行) - `@tauri-apps/api/clipboard` モジュールは削除されました。代わりに `@tauri-apps/plugin-clipboard` を使用して下さい。[移行先](#clipboard-プラグインの移行) - `@tauri-apps/api/dialog` モジュールは削除されました。代わりに `@tauri-apps/plugin-dialog` を使用して下さい。[移行先](#dialog-プラグインの移行) -- `@tauri-apps/api/fs` モジュールは削除されました。代わりに `@tauri-apps/plugin-fs` を使用して下さい。[移行先](#file-System-プラグインの移行) +- `@tauri-apps/api/fs` モジュールは削除されました。代わりに `@tauri-apps/plugin-fs` を使用して下さい。[移行先](#file-system-プラグインの移行) - `@tauri-apps/api/global-shortcut` モジュールは削除されました。代わりに `@tauri-apps/plugin-global-shortcut` を使用して下さい。[移行先](#global-shortcut-プラグインの移行) - `@tauri-apps/api/http` モジュールは削除されました。代わりに `@tauri-apps/plugin-http` を使用してください。[移行先](#http-プラグインの移行) -- `@tauri-apps/api/os` モジュールは削除されました。代わりに `@tauri-apps/plugin-os` を使用して下さい。[移行先](#OS-プラグインの移行) +- `@tauri-apps/api/os` モジュールは削除されました。代わりに `@tauri-apps/plugin-os` を使用して下さい。[移行先](#os-プラグインの移行) - `@tauri-apps/api/notification` モジュールは削除されました。代わりに `@tauri-apps/plugin-notification` を使用して下さい。[移行先](#notification-プラグインの移行) -- `@tauri-apps/api/process` モジュールは削除されました。代わりに `@tauri-apps/plugin-process` を使用して下さい。[移行先](#Process-プラグインの移行) -- `@tauri-apps/api/shell` モジュールは削除されました。代わりに `@tauri-apps/plugin-shell` を使用して下さい。[移行先](#Shell-プラグインの移行) -- `@tauri-apps/api/updater` モジュールは削除されました。代わりに `@tauri-apps/plugin-updater` を使用してください。[移行先](#Updater-プラグインの移行) -- `@tauri-apps/api/window` モジュールは `@tauri-apps/api/webviewWindow` に改称されました。[移行先](#新しい-Window-API-への移行) +- `@tauri-apps/api/process` モジュールは削除されました。代わりに `@tauri-apps/plugin-process` を使用して下さい。[移行先](#process-プラグインの移行) +- `@tauri-apps/api/shell` モジュールは削除されました。代わりに `@tauri-apps/plugin-shell` を使用して下さい。[移行先](#shell-プラグインの移行) +- `@tauri-apps/api/updater` モジュールは削除されました。代わりに `@tauri-apps/plugin-updater` を使用してください。[移行先](#updater-プラグインの移行) +- `@tauri-apps/api/window` モジュールは `@tauri-apps/api/webviewWindow` に改称されました。[移行先](#新しい-window-api-への移行) バージョン 1 のプラグインは、`@tauri-apps/plugin-` として公開されています。これは、以前には git から `tauri-plugin--api` として入手可能だったものです。 @@ -1174,7 +1174,7 @@ JavaScript 関連では、`WebviewWindow` クラスが `@tauri-apps/api/webviewW ### 埋め込み追加ファイルの移行(リソース) -JavaScript 関連では、[File System プラグインの移行](#file-System-プラグインの移行) を実行することを忘れないでください。 +JavaScript 関連では、[File System プラグインの移行](#file-system-プラグインの移行) を実行することを忘れないでください。 さらに、[許可の移行](#許可の移行) の項で、「バージョン 1」許可リストに加えられた変更の内容にも注意してください。 Rust 関連では、[Path to Tauri Manger の移行](#path-to-tauri-manager-の移行) の説明内容を必ず実行してください。 @@ -1185,7 +1185,7 @@ Tauri バージョン 1(v1)では、外部バイナリとその引数は許 JavaScript 関連では、[Shell プラグインの移行](#shell-プラグインの移行) の内容を必ず実行して下さい。 -Rust 関連では、`tauri::api::process` API が削除されています。代わりに `tauri_plugin_shell::ShellExt` および `tauri_plugin_shell::process::CommandEvent` API を使用してください。使用法については、[外部バイナリの埋め込み](/jp/develop/sidecar/#rust-から実行) ガイドを参照して下さい。 +Rust 関連では、`tauri::api::process` API が削除されています。代わりに `tauri_plugin_shell::ShellExt` および `tauri_plugin_shell::process::CommandEvent` API を使用してください。使用法については、[外部バイナリの埋め込み](/jp/develop/sidecar/#running-it-from-rust) ガイドを参照して下さい。 「process-command-api」機能フラグは バージョン 2(v2)で削除されました。そのため、外部バイナリの実行に、この機能を Tauri 構成で定義する必要がなくなりました。 From 335cfa6d76a6b2ce0ecaba43348d96a90f10d428 Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Tue, 4 Feb 2025 14:25:58 -0300 Subject: [PATCH 23/38] fix hash --- src/content/docs/jp/start/prerequisites.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/docs/jp/start/prerequisites.mdx b/src/content/docs/jp/start/prerequisites.mdx index 17291fab46..8c568f7c64 100644 --- a/src/content/docs/jp/start/prerequisites.mdx +++ b/src/content/docs/jp/start/prerequisites.mdx @@ -114,6 +114,7 @@ sudo apk add \ libayatana-appindicator-dev \ librsvg ``` + @@ -202,7 +203,7 @@ Windows での開発には、Tauri は Microsoft の C++ Build Tools と Microso #### WebView2 のインストール :::tip -Windows 10(バージョン 1803)以降の Windows では、WebView 2 が既にインストール済みです。開発に使用するシステムのバージョンがこれらであれば、このステップを飛ばして、直接 [Rust をインストール](#rust) に進んでください。 +Windows 10(バージョン 1803)以降の Windows では、WebView 2 が既にインストール済みです。開発に使用するシステムのバージョンがこれらであれば、このステップを飛ばして、直接 [Rust をインストール](#rust-のインストール) に進んでください。 ::: Tauri は、Windows 上にコンテンツをレンダリングするために Microsoft Edge WebView2 を使用します。 From bb2d450dbdad71b2a0a3c13c7a7a707bc3ec195e Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Sat, 8 Feb 2025 12:11:12 -0300 Subject: [PATCH 24/38] format --- src/content/docs/jp/doc-JP Rev Control.md | 110 +++++++++--------- src/content/docs/jp/index.mdx | 25 ++-- src/content/docs/jp/rss.mdx | 4 +- src/content/docs/jp/start/create-project.mdx | 6 +- src/content/docs/jp/start/frontend/index.mdx | 6 +- src/content/docs/jp/start/frontend/leptos.mdx | 6 +- src/content/docs/jp/start/frontend/nextjs.mdx | 6 +- src/content/docs/jp/start/frontend/nuxt.mdx | 5 +- src/content/docs/jp/start/frontend/qwik.mdx | 14 +-- .../docs/jp/start/frontend/sveltekit.mdx | 6 +- src/content/docs/jp/start/frontend/trunk.mdx | 5 +- src/content/docs/jp/start/frontend/vite.mdx | 6 +- src/content/docs/jp/start/index.mdx | 8 +- .../docs/jp/start/migrate/from-tauri-1.mdx | 10 +- .../jp/start/migrate/from-tauri-2-beta.mdx | 6 +- src/content/docs/jp/start/migrate/index.mdx | 7 +- src/content/docs/jp/start/prerequisites.mdx | 7 +- 17 files changed, 117 insertions(+), 120 deletions(-) diff --git a/src/content/docs/jp/doc-JP Rev Control.md b/src/content/docs/jp/doc-JP Rev Control.md index 1e84f36d67..331efbb2af 100644 --- a/src/content/docs/jp/doc-JP Rev Control.md +++ b/src/content/docs/jp/doc-JP Rev Control.md @@ -2,23 +2,23 @@ title: Tauri Doc 日本語版 改訂記録メモ
Memorundom on Doc-JP Rev Control --- -+ Rev Status Control of Japanese Translation Documents
日本語訳文書の改訂履歴メモ +- Rev Status Control of Japanese Translation Documents
日本語訳文書の改訂履歴メモ ## Basic Procedure of JP Translation(邦訳基本手順) 1. Use On-line Translation for the inital translation.
オンライン翻訳にて初期翻訳。 1. Checks on the auto-translation result. Inappropriate translations shall be corrected (such as "Tauri" - which is often translated as the name of the zodiac sign "the Bull").
自動翻訳の内容確認。f不適切な訳語は修正(例えば「牡牛座」と訳された "Tauri" など)。 1. Products names, trade names and proper names such as Tauri, Windows, macOS etc. are shown as they are.
商品名、会社名、固有名詞などは、 -そのまま英語表記とする(必要に応じて括弧書きで「読み」を表示)。 + そのまま英語表記とする(必要に応じて括弧書きで「読み」を表示)。 1. The technical terms shall be checked on the on-line terminology sites (Microsoft Terminology Search, etc.)
技術専門用語類は、オンライン用語検索サイト(マイクロソフト社等)に記載されている一般的なものを採用するが、カタカナ語に関しては適宜和語に置き換える倍もある。 -## Rev Numbering System Configuration: x.xx.xx +## Rev Numbering System Configuration: x.xx.xx Example Numbering(番号体系例): 2.00.01 -+ First Didit(最初の一桁)= Tauri Version: "2" --> Tauri 2.0(Tauri のバージョン) -+ Middle Digits(中央の二桁)= English Doc Status: "00" --> EN Doc Status #00(英語版文書番号) -+ Last Digits(最後の二桁) = JP Doc Status: "01" --> JP Doc Status #01(日本語文書番号) +- First Didit(最初の一桁)= Tauri Version: "2" --> Tauri 2.0(Tauri のバージョン) +- Middle Digits(中央の二桁)= English Doc Status: "00" --> EN Doc Status #00(英語版文書番号) +- Last Digits(最後の二桁) = JP Doc Status: "01" --> JP Doc Status #01(日本語文書番号) For the details of EN/JP doc status, see the listing below:
文書番号の詳細は以下のリストを参照して下さい。 @@ -32,145 +32,143 @@ For the details of EN/JP doc status, see the listing below:
文書番号の #### index.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2025/01/01 | **00** | 2025/01/06 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2025/01/01 | **00** | 2025/01/06 | #### 404.md | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2025/01/01 | **00** | 2025/01/06 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2025/01/01 | **00** | 2025/01/06 | #### rss.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2025/01/01 | **00** | 2025/01/06 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2025/01/01 | **00** | 2025/01/06 | ### Quick Start #### start/index.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/01 | **00** | 2025/01/06 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/10/01 | **00** | 2025/01/06 | #### start/prerequisites.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/17 | **00** | 2025/01/07 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/11/17 | **00** | 2025/01/07 | #### start/create-project.mdx -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date| -| :---: | :--- | :---: | :--- | -| **00** | 2024/12/31 | **00** | 2025/01/07 | +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/12/31 | **00** | 2025/01/07 | #### frontend/index.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/01 | **00** | 2025/01/07 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/10/01 | **00** | 2025/01/07 | #### frontend/leptos.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/01 | **00** | 2025/01/07 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/10/01 | **00** | 2025/01/07 | #### frontend/nextjs.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/01 | **00** | 2025/01/07 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/11/01 | **00** | 2025/01/07 | #### frontend/nuxt.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/01 | **00** | 2025/01/07 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/11/01 | **00** | 2025/01/07 | #### frontend/qwik.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/01 | **00** | 2025/01/07 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/11/01 | **00** | 2025/01/07 | #### frontend/sveltekit. -| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date| -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/01 | **00** | 2025/01/07 | +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/11/01 | **00** | 2025/01/07 | #### frontend/trunk.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/01 | **00** | 2025/01/07 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/10/01 | **00** | 2025/01/07 | #### frontend/vite.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/01 | **00** | 2025/01/07 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/11/01 | **00** | 2025/01/07 | #### migrate/index.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/01 | **00** | 2025/01/08 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/10/01 | **00** | 2025/01/08 | #### migrate/from-tauri-1.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/13 | **00** | 2025/01/08 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/11/13 | **00** | 2025/01/08 | #### migrate/from-tauri-2-beta.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/06 | **00** | 2025/01/08 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/10/06 | **00** | 2025/01/08 | ### Core Concepts ### concept/index.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/01 | **00** | 2025/01/09 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/10/01 | **00** | 2025/01/09 | ### concept/architecture.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/11 | **00** | 2025/01/15 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/11/11 | **00** | 2025/01/15 | ### concept/process-model.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/01 | **00** | 2025/01/16 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/10/01 | **00** | 2025/01/16 | ### concept/size.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/01 | **00** | 2025/01/16 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/10/01 | **00** | 2025/01/16 | ### concept/I-P-C/index.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/11/27 | **00** | 2025/01/18 | +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/11/27 | **00** | 2025/01/18 | ### concept/I-P-C/brownfield.mdx | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :---: | :--- | :---: | :--- | -| **00** | 2024/10/01 | **00** | 2025/01/18 | - - +| :------: | :---------- | :------: | :---------- | +| **00** | 2024/10/01 | **00** | 2025/01/18 | Cont. diff --git a/src/content/docs/jp/index.mdx b/src/content/docs/jp/index.mdx index 3a516d6e48..254e29f533 100644 --- a/src/content/docs/jp/index.mdx +++ b/src/content/docs/jp/index.mdx @@ -40,30 +40,29 @@ import Cta from '@fragments/cta.mdx'; - 現在の Web 設定をそのまま Tauri で利用する。あるいは夢のプロジェクトを新しく始める。 - Tauri はどのようなフロントエンド技術も利用できるので、現在の設定を変更する必要はありません。 + 現在の Web 設定をそのまま Tauri + で利用する。あるいは夢のプロジェクトを新しく始める。 Tauri + はどのようなフロントエンド技術も利用できるので、現在の設定を変更する必要はありません。 - 同じひとつのコードから、Linux 用、macOS 用、Windows 用、Android 用、それに iOS 用の - アプリをすべて構築できます。 + 同じひとつのコードから、Linux 用、macOS 用、Windows 用、Android 用、それに + iOS 用の アプリをすべて構築できます。 - フロントエンド部を JavaScript で、アプリケーション・ロジックを Rust で作成し、 - システムの奥深くで Swift と Kotlin を用いて統合します。 + フロントエンド部を JavaScript で、アプリケーション・ロジックを Rust + で作成し、 システムの奥深くで Swift と Kotlin を用いて統合します。 最優先事項と最大の革新を推進する Tauri チームの「第一原則」です。 - OS 独自のウェッブ・レンダリング・エンジンを利用することで、Tauri アプリのプログラム・サイズは - わずか「600 KB」ほどにもできます。 + OS 独自のウェッブ・レンダリング・エンジンを利用することで、Tauri + アプリのプログラム・サイズは わずか「600 KB」ほどにもできます。 - 「パフォーマンス」と「セキュリティ」をその中核に持つ Rust は、次世代アプリ向けのプログラミング - 言語です。 + 「パフォーマンス」と「セキュリティ」をその中核に持つ Rust + は、次世代アプリ向けのプログラミング 言語です。 -
-Doc-JP 2.00.00 -
\ No newline at end of file +
Doc-JP 2.00.00
diff --git a/src/content/docs/jp/rss.mdx b/src/content/docs/jp/rss.mdx index 7eab90b223..5d1eda1bdc 100644 --- a/src/content/docs/jp/rss.mdx +++ b/src/content/docs/jp/rss.mdx @@ -23,6 +23,4 @@ import { LinkCard } from '@astrojs/starlight/components'; href="/pages.xml" /> -
-Doc-JP 2.00.00 -
\ No newline at end of file +
Doc-JP 2.00.00
diff --git a/src/content/docs/jp/start/create-project.mdx b/src/content/docs/jp/start/create-project.mdx index 0b6f31f1bc..d3abce163b 100644 --- a/src/content/docs/jp/start/create-project.mdx +++ b/src/content/docs/jp/start/create-project.mdx @@ -219,8 +219,8 @@ import CommandTabs from '@components/CommandTabs.astro'; - [Tauri アプリの作り方について](/jp/develop/) - [Tauri 拡張のための追加機能について](jp/plugin/) -
-【※ この日本語版は、「Dec 31, 2024 英語版」に基づいています】
-Doc-JP 2.00.00 + 【※ この日本語版は、「Dec 31, 2024 英語版」に基づいています】 +
+ Doc-JP 2.00.00
diff --git a/src/content/docs/jp/start/frontend/index.mdx b/src/content/docs/jp/start/frontend/index.mdx index ce4c20520e..409dccc2b5 100644 --- a/src/content/docs/jp/start/frontend/index.mdx +++ b/src/content/docs/jp/start/frontend/index.mdx @@ -55,8 +55,8 @@ Tauri はフロントエンドに依存せず、ほとんどのフロントエ ::: -
-【※ この日本語版は、「Oct 01, 2024 英語版」に基づいています】
-Doc-JP 2.00.00 + 【※ この日本語版は、「Oct 01, 2024 英語版」に基づいています】 +
+ Doc-JP 2.00.00
diff --git a/src/content/docs/jp/start/frontend/leptos.mdx b/src/content/docs/jp/start/frontend/leptos.mdx index 0405d71bb6..9c8785bb9b 100644 --- a/src/content/docs/jp/start/frontend/leptos.mdx +++ b/src/content/docs/jp/start/frontend/leptos.mdx @@ -56,8 +56,8 @@ Leptos(レプトス)は、Rustを基盤としたウェブ・フレームワ -
-【※ この日本語版は、「Oct 01, 2024 英語版」に基づいています】
-Doc-JP 2.00.00 + 【※ この日本語版は、「Oct 01, 2024 英語版」に基づいています】 +
+ Doc-JP 2.00.00
diff --git a/src/content/docs/jp/start/frontend/nextjs.mdx b/src/content/docs/jp/start/frontend/nextjs.mdx index 22631e387a..eab10c5ee0 100644 --- a/src/content/docs/jp/start/frontend/nextjs.mdx +++ b/src/content/docs/jp/start/frontend/nextjs.mdx @@ -130,8 +130,8 @@ Next.js(ネクスト・ジェイエス)は React 用のメタ・フレーム -
-【※ この日本語版は、「Nov 01, 2024 英語版」に基づいています】
-Doc-JP 2.00.00 + 【※ この日本語版は、「Nov 01, 2024 英語版」に基づいています】 +
+ Doc-JP 2.00.00
diff --git a/src/content/docs/jp/start/frontend/nuxt.mdx b/src/content/docs/jp/start/frontend/nuxt.mdx index 80c37821f3..1fbcde93c4 100644 --- a/src/content/docs/jp/start/frontend/nuxt.mdx +++ b/src/content/docs/jp/start/frontend/nuxt.mdx @@ -117,6 +117,7 @@ Nuxt(ナクスト)は Vue 用のメタ・フレームワークです。Nuxt
-【※ この日本語版は、「Nov 01, 2024 英語版」に基づいています】
-Doc-JP 2.00.00 + 【※ この日本語版は、「Nov 01, 2024 英語版」に基づいています】 +
+ Doc-JP 2.00.00
diff --git a/src/content/docs/jp/start/frontend/qwik.mdx b/src/content/docs/jp/start/frontend/qwik.mdx index b3d64f4b6a..7d321e0057 100644 --- a/src/content/docs/jp/start/frontend/qwik.mdx +++ b/src/content/docs/jp/start/frontend/qwik.mdx @@ -24,13 +24,13 @@ import CommandTabs from '@components/CommandTabs.astro'; `} +cd `} yarn={`yarn create qwik@latest - cd `} +cd `} pnpm={`pnpm create qwik@latest - cd `} +cd `} deno={`deno run -A npm:create-qwik@latest - cd `} +cd `} /> 1. ##### `static adapter` をインストールします @@ -141,8 +141,8 @@ import CommandTabs from '@components/CommandTabs.astro'; -
-【※ この日本語版は、「Nov 01, 2024 英語版」に基づいています】
-Doc-JP 2.00.00 + 【※ この日本語版は、「Nov 01, 2024 英語版」に基づいています】 +
+ Doc-JP 2.00.00
diff --git a/src/content/docs/jp/start/frontend/sveltekit.mdx b/src/content/docs/jp/start/frontend/sveltekit.mdx index 985fbb9aef..693fcccdcd 100644 --- a/src/content/docs/jp/start/frontend/sveltekit.mdx +++ b/src/content/docs/jp/start/frontend/sveltekit.mdx @@ -135,8 +135,8 @@ SvelteKit(スヴェルトキット)は Svelte(スヴェルト)用のメ -
-【※ この日本語版は、「Nov 01, 2024 英語版」に基づいています】
-Doc-JP 2.00.00 + 【※ この日本語版は、「Nov 01, 2024 英語版」に基づいています】 +
+ Doc-JP 2.00.00
diff --git a/src/content/docs/jp/start/frontend/trunk.mdx b/src/content/docs/jp/start/frontend/trunk.mdx index 1113bb3f36..f729d7bda5 100644 --- a/src/content/docs/jp/start/frontend/trunk.mdx +++ b/src/content/docs/jp/start/frontend/trunk.mdx @@ -51,6 +51,7 @@ Trunk(トランク)は Rust 用の WASM(ウェブアセンブリ)Web ア
-【※ この日本語版は、「Oct 01, 2024 英語版」に基づいています】
-Doc-JP 2.00.00 + 【※ この日本語版は、「Oct 01, 2024 英語版」に基づいています】 +
+ Doc-JP 2.00.00
diff --git a/src/content/docs/jp/start/frontend/vite.mdx b/src/content/docs/jp/start/frontend/vite.mdx index ea1b96b20d..a407268373 100644 --- a/src/content/docs/jp/start/frontend/vite.mdx +++ b/src/content/docs/jp/start/frontend/vite.mdx @@ -136,8 +136,8 @@ Vite(ヴィート)は、 最新の Web プロジェクトで、より高速 -
-【※ この日本語版は、「Nov 01, 2024 英語版」に基づいています】
-Doc-JP 2.00.00 + 【※ この日本語版は、「Nov 01, 2024 英語版」に基づいています】 +
+ Doc-JP 2.00.00
diff --git a/src/content/docs/jp/start/index.mdx b/src/content/docs/jp/start/index.mdx index faf1e42915..149f1be3f2 100644 --- a/src/content/docs/jp/start/index.mdx +++ b/src/content/docs/jp/start/index.mdx @@ -49,8 +49,8 @@ JavaScript 部分と Rust 部分間の結合には、JavaScript の「`invoke` 加えて、Tauri には、Tauri 本体が対応できる機能を拡張する多くのプラグインもあります。このようなプラグインは、コミュニティによって提供されているプラグインと並んで、「プラグイン [Plugins section](/jp/plugin/)」のセクションで見つけることができます。 -
-【※ この日本語版は、「Oct 1, 2024 英語版」に基づいています】
-Doc-JP 2.00.00 -
\ No newline at end of file + 【※ この日本語版は、「Oct 1, 2024 英語版」に基づいています】 +
+ Doc-JP 2.00.00 +
diff --git a/src/content/docs/jp/start/migrate/from-tauri-1.mdx b/src/content/docs/jp/start/migrate/from-tauri-1.mdx index ce43c28e76..4331ace9b9 100644 --- a/src/content/docs/jp/start/migrate/from-tauri-1.mdx +++ b/src/content/docs/jp/start/migrate/from-tauri-1.mdx @@ -1001,7 +1001,7 @@ fn main() { ### Tray Icon モジュールの移行 -Rust の `SystemTray` API は表記の一貫性確保のために `TrayIcon` に改称されています。新しい API は、Rust の「`tray` モジュール」で参照できます。 +Rust の `SystemTray` API は表記の一貫性確保のために `TrayIcon` に改称されています。新しい API は、Rust の「`tray` モジュール」で参照できます。 #### `tauri::tray::TrayIconBuilder` の使用 @@ -1019,7 +1019,7 @@ let tray = tauri::tray::TrayIconBuilder::with_id("my-tray").build(app)?; #### Tray Events(トレイ・イベント) -`tauri::SystemTray::on_event` は `tauri::tray::TrayIconBuilder::on_menu_event` と `tauri::tray::TrayIconBuilder::on_tray_icon_event` とに分割されました: +`tauri::SystemTray::on_event` は `tauri::tray::TrayIconBuilder::on_menu_event` と `tauri::tray::TrayIconBuilder::on_tray_icon_event` とに分割されました: ```rust use tauri::{ @@ -1201,7 +1201,7 @@ Rust 関連では、`tauri::api::process` API が削除されています。代 許可と機能の詳細については、[セキュリティ関連文書](/jp/security/)を参照してください。
-【※ この日本語版は、「Nov 13, 2024 英語版」に基づいています】
-Doc-JP 2.00.00 + 【※ この日本語版は、「Nov 13, 2024 英語版」に基づいています】 +
+ Doc-JP 2.00.00
- diff --git a/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx b/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx index d4c6b2fd00..65ec5acf7f 100644 --- a/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx +++ b/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx @@ -151,8 +151,8 @@ export default defineConfig({ NPM パッケージの `internal-ip` は不要になりました。代わりに TAURI_DEV_HOST 値を直接使用できます。 ::: -
-【※ この日本語版は、「Oct 06, 2024 英語版」に基づいています】
-Doc-JP 2.00.00 + 【※ この日本語版は、「Oct 06, 2024 英語版」に基づいています】 +
+ Doc-JP 2.00.00
diff --git a/src/content/docs/jp/start/migrate/index.mdx b/src/content/docs/jp/start/migrate/index.mdx index 836ff19fba..72d145aa9b 100644 --- a/src/content/docs/jp/start/migrate/index.mdx +++ b/src/content/docs/jp/start/migrate/index.mdx @@ -22,9 +22,8 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components'; /> -
-【※ この日本語版は、「Oct 01, 2024 英語版」に基づいています】
-Doc-JP 2.00.00 + 【※ この日本語版は、「Oct 01, 2024 英語版」に基づいています】 +
+ Doc-JP 2.00.00
- diff --git a/src/content/docs/jp/start/prerequisites.mdx b/src/content/docs/jp/start/prerequisites.mdx index 8c568f7c64..9f728006f9 100644 --- a/src/content/docs/jp/start/prerequisites.mdx +++ b/src/content/docs/jp/start/prerequisites.mdx @@ -157,7 +157,7 @@ pkgs.mkShell { -もし、使用しているディストリビューションが上記に含まれていない場合には、[GitHub の Awesome Tauri](https://github.com/tauri-apps/awesome-tauri#guides) のページを参照して、ガイドマニュアルが作成されていないかどうか確認してみてください。 +もし、使用しているディストリビューションが上記に含まれていない場合には、[GitHub の Awesome Tauri](https://github.com/tauri-apps/awesome-tauri#guides) のページを参照して、ガイドマニュアルが作成されていないかどうか確認してみてください。 次のステップ: [Rust のインストール](#rust-のインストール) @@ -415,6 +415,7 @@ brew install cocoapods
-【※ この日本語版は、「Nov 17, 2024 英語版」に基づいています】
-Doc-JP 2.00.00 + 【※ この日本語版は、「Nov 17, 2024 英語版」に基づいています】 +
+ Doc-JP 2.00.00
From 2b39512a89b802a4b12270547d447ce474a4daa4 Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Sat, 8 Feb 2025 12:20:18 -0300 Subject: [PATCH 25/38] fix format --- .prettierignore | 1 + src/content/docs/jp/start/frontend/qwik.mdx | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.prettierignore b/.prettierignore index 97aa354326..4d99d3ad0c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -30,6 +30,7 @@ src/content/docs/learn/Security/using-plugin-permissions.mdx src/content/docs/learn/Security/writing-plugin-permissions.mdx src/content/docs/start/frontend/qwik.mdx src/content/docs/zh-cn/start/frontend/qwik.mdx +src/content/docs/jp/start/frontend/qwik.mdx src/content/docs/es/start/frontend/qwik.mdx src/content/docs/learn/splashscreen.mdx src/content/docs/security/http-headers.mdx diff --git a/src/content/docs/jp/start/frontend/qwik.mdx b/src/content/docs/jp/start/frontend/qwik.mdx index 7d321e0057..f6b5963b01 100644 --- a/src/content/docs/jp/start/frontend/qwik.mdx +++ b/src/content/docs/jp/start/frontend/qwik.mdx @@ -24,13 +24,13 @@ import CommandTabs from '@components/CommandTabs.astro'; `} + cd `} yarn={`yarn create qwik@latest -cd `} + cd `} pnpm={`pnpm create qwik@latest -cd `} + cd `} deno={`deno run -A npm:create-qwik@latest -cd `} + cd `} /> 1. ##### `static adapter` をインストールします From 8d0483193968ae537639d0ef1a66e3d09e994dbf Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Sat, 8 Feb 2025 12:23:38 -0300 Subject: [PATCH 26/38] change "jp" to "ja" --- .github/labeler.yml | 6 +++--- .prettierignore | 2 +- locales.json | 4 ++-- lunaria.config.json | 3 ++- src/content/docs/{jp => ja}/404.md | 0 src/content/docs/{jp => ja}/doc-JP Rev Control.md | 0 src/content/docs/{jp => ja}/index.mdx | 4 ++-- src/content/docs/{jp => ja}/rss.mdx | 0 .../docs/{jp => ja}/start/create-project.mdx | 12 ++++++------ .../docs/{jp => ja}/start/frontend/index.mdx | 2 +- .../docs/{jp => ja}/start/frontend/leptos.mdx | 0 .../docs/{jp => ja}/start/frontend/nextjs.mdx | 0 .../docs/{jp => ja}/start/frontend/nuxt.mdx | 0 .../docs/{jp => ja}/start/frontend/qwik.mdx | 0 .../docs/{jp => ja}/start/frontend/sveltekit.mdx | 0 .../docs/{jp => ja}/start/frontend/trunk.mdx | 0 .../docs/{jp => ja}/start/frontend/vite.mdx | 0 src/content/docs/{jp => ja}/start/index.mdx | 14 +++++++------- .../docs/{jp => ja}/start/migrate/from-tauri-1.mdx | 10 +++++----- .../{jp => ja}/start/migrate/from-tauri-2-beta.mdx | 2 +- .../docs/{jp => ja}/start/migrate/index.mdx | 0 .../docs/{jp => ja}/start/prerequisites.mdx | 12 ++++++------ 22 files changed, 36 insertions(+), 35 deletions(-) rename src/content/docs/{jp => ja}/404.md (100%) rename src/content/docs/{jp => ja}/doc-JP Rev Control.md (100%) rename src/content/docs/{jp => ja}/index.mdx (97%) rename src/content/docs/{jp => ja}/rss.mdx (100%) rename src/content/docs/{jp => ja}/start/create-project.mdx (96%) rename src/content/docs/{jp => ja}/start/frontend/index.mdx (98%) rename src/content/docs/{jp => ja}/start/frontend/leptos.mdx (100%) rename src/content/docs/{jp => ja}/start/frontend/nextjs.mdx (100%) rename src/content/docs/{jp => ja}/start/frontend/nuxt.mdx (100%) rename src/content/docs/{jp => ja}/start/frontend/qwik.mdx (100%) rename src/content/docs/{jp => ja}/start/frontend/sveltekit.mdx (100%) rename src/content/docs/{jp => ja}/start/frontend/trunk.mdx (100%) rename src/content/docs/{jp => ja}/start/frontend/vite.mdx (100%) rename src/content/docs/{jp => ja}/start/index.mdx (90%) rename src/content/docs/{jp => ja}/start/migrate/from-tauri-1.mdx (99%) rename src/content/docs/{jp => ja}/start/migrate/from-tauri-2-beta.mdx (98%) rename src/content/docs/{jp => ja}/start/migrate/index.mdx (100%) rename src/content/docs/{jp => ja}/start/prerequisites.mdx (97%) diff --git a/.github/labeler.yml b/.github/labeler.yml index cbbaa8d09c..00bcab5958 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -5,7 +5,7 @@ i18n: - src/content/docs/fr/**/* - src/content/docs/it/**/* - src/content/docs/zh-cn/**/* - - src/content/docs/jp/**/* + - src/content/docs/ja/**/* "i18n: es": - src/content/docs/es/**/* @@ -19,6 +19,6 @@ i18n: "i18n: zh-cn": - src/content/docs/zh-cn/**/* -"i18n: jp": - - src/content/docs/jp/**/* +"i18n: ja": + - src/content/docs/ja/**/* diff --git a/.prettierignore b/.prettierignore index 4d99d3ad0c..6719bfde34 100644 --- a/.prettierignore +++ b/.prettierignore @@ -30,7 +30,7 @@ src/content/docs/learn/Security/using-plugin-permissions.mdx src/content/docs/learn/Security/writing-plugin-permissions.mdx src/content/docs/start/frontend/qwik.mdx src/content/docs/zh-cn/start/frontend/qwik.mdx -src/content/docs/jp/start/frontend/qwik.mdx +src/content/docs/ja/start/frontend/qwik.mdx src/content/docs/es/start/frontend/qwik.mdx src/content/docs/learn/splashscreen.mdx src/content/docs/security/http-headers.mdx diff --git a/locales.json b/locales.json index d905760c72..b9898091be 100644 --- a/locales.json +++ b/locales.json @@ -15,8 +15,8 @@ "label": "简体中文", "lang": "zh-cn" }, - "jp": { + "ja": { "label": "日本語", - "lang": "jp" + "lang": "ja" } } diff --git a/lunaria.config.json b/lunaria.config.json index 71cee04503..8628df1ba7 100644 --- a/lunaria.config.json +++ b/lunaria.config.json @@ -42,7 +42,7 @@ }, { "label": "日本語", - "lang": "jp" + "lang": "ja" } ], "dashboard": { @@ -68,3 +68,4 @@ } } } +} \ No newline at end of file diff --git a/src/content/docs/jp/404.md b/src/content/docs/ja/404.md similarity index 100% rename from src/content/docs/jp/404.md rename to src/content/docs/ja/404.md diff --git a/src/content/docs/jp/doc-JP Rev Control.md b/src/content/docs/ja/doc-JP Rev Control.md similarity index 100% rename from src/content/docs/jp/doc-JP Rev Control.md rename to src/content/docs/ja/doc-JP Rev Control.md diff --git a/src/content/docs/jp/index.mdx b/src/content/docs/ja/index.mdx similarity index 97% rename from src/content/docs/jp/index.mdx rename to src/content/docs/ja/index.mdx index 254e29f533..5dea37939a 100644 --- a/src/content/docs/jp/index.mdx +++ b/src/content/docs/ja/index.mdx @@ -14,11 +14,11 @@ hero: file: ../../../assets/logo-outline.svg actions: - text: さあ、始めよう - link: /jp/start/ + link: /ja/start/ icon: right-arrow variant: primary - text: Tauri 1.0 ドキュメント - link: https://v1.tauri.app/jp/ + link: https://v1.tauri.app/ja/ icon: external variant: minimal --- diff --git a/src/content/docs/jp/rss.mdx b/src/content/docs/ja/rss.mdx similarity index 100% rename from src/content/docs/jp/rss.mdx rename to src/content/docs/ja/rss.mdx diff --git a/src/content/docs/jp/start/create-project.mdx b/src/content/docs/ja/start/create-project.mdx similarity index 96% rename from src/content/docs/jp/start/create-project.mdx rename to src/content/docs/ja/start/create-project.mdx index d3abce163b..c0bd0e8c77 100644 --- a/src/content/docs/jp/start/create-project.mdx +++ b/src/content/docs/ja/start/create-project.mdx @@ -26,7 +26,7 @@ Tauri が非常に柔軟である理由の1つは、事実上どのような :::tip[どれを選べばよいのか判りませんか?] {/* TODO: redirect to integrate to existing front-end project specific docs */} -はじめての場合には、「vanilla」テンプレート(HTML、CSS、および JavaScript/フレームワークなし)を利用してプロジェクトを開始することをお薦めします。いつでも、後から、[フロントエンドのフレームワークを統合](/jp/start/create-project/) できます。 +はじめての場合には、「vanilla」テンプレート(HTML、CSS、および JavaScript/フレームワークなし)を利用してプロジェクトを開始することをお薦めします。いつでも、後から、[フロントエンドのフレームワークを統合](/ja/start/create-project/) できます。 - どの言語をフロントエンドで使用するかを選択: `TypeScript / JavaScript` - パッケージ・マネージャーを選択: `pnpm` @@ -108,7 +108,7 @@ Tauri が非常に柔軟である理由の1つは、事実上どのような #### 開発サーバーの起動 -`create-tauri-app` で設定後、プロジェクト・フォルダーに移動して依存関係をインストールしたら、 [Tauri CLI](/jp/reference/cli/) (コマンドライン・インターフェース)を使用して開発サーバーを起動します。 +`create-tauri-app` で設定後、プロジェクト・フォルダーに移動して依存関係をインストールしたら、 [Tauri CLI](/ja/reference/cli/) (コマンドライン・インターフェース)を使用して開発サーバーを起動します。 import CommandTabs from '@components/CommandTabs.astro'; @@ -214,10 +214,10 @@ import CommandTabs from '@components/CommandTabs.astro'; ## 次のステップは… -- [フロントエンドの設定について](/jp/start/frontend/) -- [Tauri コマンドライン・インターフェイスについて](/jp/reference/cli/) -- [Tauri アプリの作り方について](/jp/develop/) -- [Tauri 拡張のための追加機能について](jp/plugin/) +- [フロントエンドの設定について](/ja/start/frontend/) +- [Tauri コマンドライン・インターフェイスについて](/ja/reference/cli/) +- [Tauri アプリの作り方について](/ja/develop/) +- [Tauri 拡張のための追加機能について](ja/plugin/)
【※ この日本語版は、「Dec 31, 2024 英語版」に基づいています】 diff --git a/src/content/docs/jp/start/frontend/index.mdx b/src/content/docs/ja/start/frontend/index.mdx similarity index 98% rename from src/content/docs/jp/start/frontend/index.mdx rename to src/content/docs/ja/start/frontend/index.mdx index 409dccc2b5..c3b9b795d5 100644 --- a/src/content/docs/jp/start/frontend/index.mdx +++ b/src/content/docs/ja/start/frontend/index.mdx @@ -51,7 +51,7 @@ Tauri はフロントエンドに依存せず、ほとんどのフロントエ :::tip[リストにフレームワークが見つからない?] -目的のフレームワークがリストに載っていない? それは、追加設定不要で Tauri で動作するフレームワークだからかもしれません。一般的な設定については、[設定チェックリスト](/jp/start/frontend/#設定チェックリスト)の項を参照してください。 +目的のフレームワークがリストに載っていない? それは、追加設定不要で Tauri で動作するフレームワークだからかもしれません。一般的な設定については、[設定チェックリスト](/ja/start/frontend/#設定チェックリスト)の項を参照してください。 ::: diff --git a/src/content/docs/jp/start/frontend/leptos.mdx b/src/content/docs/ja/start/frontend/leptos.mdx similarity index 100% rename from src/content/docs/jp/start/frontend/leptos.mdx rename to src/content/docs/ja/start/frontend/leptos.mdx diff --git a/src/content/docs/jp/start/frontend/nextjs.mdx b/src/content/docs/ja/start/frontend/nextjs.mdx similarity index 100% rename from src/content/docs/jp/start/frontend/nextjs.mdx rename to src/content/docs/ja/start/frontend/nextjs.mdx diff --git a/src/content/docs/jp/start/frontend/nuxt.mdx b/src/content/docs/ja/start/frontend/nuxt.mdx similarity index 100% rename from src/content/docs/jp/start/frontend/nuxt.mdx rename to src/content/docs/ja/start/frontend/nuxt.mdx diff --git a/src/content/docs/jp/start/frontend/qwik.mdx b/src/content/docs/ja/start/frontend/qwik.mdx similarity index 100% rename from src/content/docs/jp/start/frontend/qwik.mdx rename to src/content/docs/ja/start/frontend/qwik.mdx diff --git a/src/content/docs/jp/start/frontend/sveltekit.mdx b/src/content/docs/ja/start/frontend/sveltekit.mdx similarity index 100% rename from src/content/docs/jp/start/frontend/sveltekit.mdx rename to src/content/docs/ja/start/frontend/sveltekit.mdx diff --git a/src/content/docs/jp/start/frontend/trunk.mdx b/src/content/docs/ja/start/frontend/trunk.mdx similarity index 100% rename from src/content/docs/jp/start/frontend/trunk.mdx rename to src/content/docs/ja/start/frontend/trunk.mdx diff --git a/src/content/docs/jp/start/frontend/vite.mdx b/src/content/docs/ja/start/frontend/vite.mdx similarity index 100% rename from src/content/docs/jp/start/frontend/vite.mdx rename to src/content/docs/ja/start/frontend/vite.mdx diff --git a/src/content/docs/jp/start/index.mdx b/src/content/docs/ja/start/index.mdx similarity index 90% rename from src/content/docs/jp/start/index.mdx rename to src/content/docs/ja/start/index.mdx index 149f1be3f2..3fb099fb2f 100644 --- a/src/content/docs/jp/start/index.mdx +++ b/src/content/docs/ja/start/index.mdx @@ -7,13 +7,13 @@ sidebar: Tauri は、主要なデスクトップおよびモバイル・プラットフォームのすべてで、軽量・高速なバイナリ・ファイルを構築できるフレームワーク(仕組み)です。フロントエンドには、HTML、JavaScript、CSS にコンパイルされるフレームワークを利用してユーザー・エクスペリエンス(UX)を構築し、バックエンドの処理ロジックには、必要に応じて Rust、Swift、Kotlin などの言語を活用できます。 -以下のシェル・コマンド(Bash、PowerShell、…)のいずれかを使用して、「Tauri アプリを作成する」[`create-tauri-app`](https://github.com/tauri-apps/create-tauri-app) を始める準備をしましょう。まず「必須事項ガイド」[prerequisites guide](/jp/start/prerequisites/) に従って、Tauri に必要なすべての「依存関係」をインストールし、次に推奨されるフロントエンド構成についての「フロントエンド構成ガイド」[Frontend Configuration guides](/jp/start/frontend/) を参照してください。 +以下のシェル・コマンド(Bash、PowerShell、…)のいずれかを使用して、「Tauri アプリを作成する」[`create-tauri-app`](https://github.com/tauri-apps/create-tauri-app) を始める準備をしましょう。まず「必須事項ガイド」[prerequisites guide](/ja/start/prerequisites/) に従って、Tauri に必要なすべての「依存関係」をインストールし、次に推奨されるフロントエンド構成についての「フロントエンド構成ガイド」[Frontend Configuration guides](/ja/start/frontend/) を参照してください。 import Cta from '@fragments/cta.mdx'; -最初のアプリを作成した後、「機能と使用例のリスト」 [List of Features & Recipes](/jp/plugin/) の章で Tauri のそのほかの機能や使い方を調べることができます。 +最初のアプリを作成した後、「機能と使用例のリスト」 [List of Features & Recipes](/ja/plugin/) の章で Tauri のそのほかの機能や使い方を調べることができます。 ## Tauri の利点 @@ -23,7 +23,7 @@ Tauri には、プログラム開発者が拠り所とできる三つの大き - システム本体の Web ビューを使用することによるでバンドルサイズの軽量化 - 任意のフロントエンド技術の利用や複数のコンピュータ言語を統合できる柔軟性 -Tauri の根本思想については、「Tauri 1.0 ブログ [Tauri 1.0 blog post](/jp/blog/tauri-1-0/)」を参照してください。 +Tauri の根本思想については、「Tauri 1.0 ブログ [Tauri 1.0 blog post](/ja/blog/tauri-1-0/)」を参照してください。 ### 安全なプログラム基盤 @@ -37,17 +37,17 @@ Tauri は、「Rust」を用いて構築されていますので、Rust が提 Tauri アプリは、すでにユーザー・システムに搭載されている Web ビューを利用しています。したがって、どの Tauri アプリも、そのアプリに必要なコードとデータ資産のみを含み、アプリ内にブラウザ・エンジンを同梱する必要がありません。このことは、つまり、最小の Tauri アプリは 600 KB 以下のサイズになりうることを意味しています。 -最適化されたアプリの作成の仕方については、「アプリ・サイズの考え方 [App Size concept](/jp/concept/size/) をご覧ください。 +最適化されたアプリの作成の仕方については、「アプリ・サイズの考え方 [App Size concept](/ja/concept/size/) をご覧ください。 ### 柔軟性のある基本仕様 -Tauri は ウェブ技術を利用していますので、事実上どのフロントエンド技術も Tauri と互換性があります。「フロントエンド構成ガイド [Frontend Configuration guide](/jp/start/frontend/) 」では、良く用いられるフロントエンド技術の一般的な構成例を記載しています。 +Tauri は ウェブ技術を利用していますので、事実上どのフロントエンド技術も Tauri と互換性があります。「フロントエンド構成ガイド [Frontend Configuration guide](/ja/start/frontend/) 」では、良く用いられるフロントエンド技術の一般的な構成例を記載しています。 -JavaScript 部分と Rust 部分間の結合には、JavaScript の「`invoke`(呼出し)」関数が、Swift や Kotlin との結合には「[Tauri Plugins](/jp/develop/plugins/)(Tauri プラグイン)」が利用できます。 +JavaScript 部分と Rust 部分間の結合には、JavaScript の「`invoke`(呼出し)」関数が、Swift や Kotlin との結合には「[Tauri Plugins](/ja/develop/plugins/)(Tauri プラグイン)」が利用できます。 [TAO](https://github.com/tauri-apps/tao) は Tauri のウィンドウ生成を、[WRY](https://github.com/tauri-apps/wry) はウェブ表示のレンダリングを行なうプラグインです。このようなプラグインは Tauri によって管理されているライブラリで、Tauri が対応できる以上の、より進んだシステム統合が必要な場合に直接使用できます。 -加えて、Tauri には、Tauri 本体が対応できる機能を拡張する多くのプラグインもあります。このようなプラグインは、コミュニティによって提供されているプラグインと並んで、「プラグイン [Plugins section](/jp/plugin/)」のセクションで見つけることができます。 +加えて、Tauri には、Tauri 本体が対応できる機能を拡張する多くのプラグインもあります。このようなプラグインは、コミュニティによって提供されているプラグインと並んで、「プラグイン [Plugins section](/ja/plugin/)」のセクションで見つけることができます。
【※ この日本語版は、「Oct 1, 2024 英語版」に基づいています】 diff --git a/src/content/docs/jp/start/migrate/from-tauri-1.mdx b/src/content/docs/ja/start/migrate/from-tauri-1.mdx similarity index 99% rename from src/content/docs/jp/start/migrate/from-tauri-1.mdx rename to src/content/docs/ja/start/migrate/from-tauri-1.mdx index 4331ace9b9..ea088daf52 100644 --- a/src/content/docs/jp/start/migrate/from-tauri-1.mdx +++ b/src/content/docs/ja/start/migrate/from-tauri-1.mdx @@ -63,7 +63,7 @@ Tauri v2 CLI には、移行作業の大部分を自動化する `migrate` コ cargo tauri migrate' /> -`migrate` コマンドの詳細については、[コマンドライン・インターフェース・リファレンス](/jp/reference/cli/#migrate) を参照してください。 +`migrate` コマンドの詳細については、[コマンドライン・インターフェース・リファレンス](/ja/reference/cli/#migrate) を参照してください。 ## 変更の概要 @@ -83,7 +83,7 @@ Tauri 1.0 から Tauri 2.0 への変更内容の概要は以下のとおりで - `tauri > updater > dialog` を削除。 - `tauri > updater` を `plugins > updater` へ移動。 - `bundle > createUpdaterArtifacts` を追加。アプリ・アップデーターを使用する場合には設定する必要があります。 - - すでに配布されている v1 アプリをアップグレードする場合は、これを `v1compatible` に設定してください。詳しくは [アップデーター・ガイド](/jp/plugin/updater/) を参照してください。 + - すでに配布されている v1 アプリをアップグレードする場合は、これを `v1compatible` に設定してください。詳しくは [アップデーター・ガイド](/ja/plugin/updater/) を参照してください。 - `tauri > systemTray` を `app > trayIcon` に改称。 - `tauri > pattern` を `app > security > pattern` へ移動。 - `tauri > bundle` をトップレベルへ移動。 @@ -99,7 +99,7 @@ Tauri 1.0 から Tauri 2.0 への変更内容の概要は以下のとおりで - `build > distDir` を `frontendDist` に改称。 - `build > devPath` を `devUrl` に改称。 -[Tauri 2.0 設定 API レファレンス](/jp/reference/config/) +[Tauri 2.0 設定 API レファレンス](/ja/reference/config/) ### Cargo の新機能 @@ -1185,7 +1185,7 @@ Tauri バージョン 1(v1)では、外部バイナリとその引数は許 JavaScript 関連では、[Shell プラグインの移行](#shell-プラグインの移行) の内容を必ず実行して下さい。 -Rust 関連では、`tauri::api::process` API が削除されています。代わりに `tauri_plugin_shell::ShellExt` および `tauri_plugin_shell::process::CommandEvent` API を使用してください。使用法については、[外部バイナリの埋め込み](/jp/develop/sidecar/#running-it-from-rust) ガイドを参照して下さい。 +Rust 関連では、`tauri::api::process` API が削除されています。代わりに `tauri_plugin_shell::ShellExt` および `tauri_plugin_shell::process::CommandEvent` API を使用してください。使用法については、[外部バイナリの埋め込み](/ja/develop/sidecar/#running-it-from-rust) ガイドを参照して下さい。 「process-command-api」機能フラグは バージョン 2(v2)で削除されました。そのため、外部バイナリの実行に、この機能を Tauri 構成で定義する必要がなくなりました。 @@ -1198,7 +1198,7 @@ Rust 関連では、`tauri::api::process` API が削除されています。代 `migrate` CLI コマンドは、v1 許可リストを自動的に解析し、関連する機能ファイルを生成します。 -許可と機能の詳細については、[セキュリティ関連文書](/jp/security/)を参照してください。 +許可と機能の詳細については、[セキュリティ関連文書](/ja/security/)を参照してください。
【※ この日本語版は、「Nov 13, 2024 英語版」に基づいています】 diff --git a/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx b/src/content/docs/ja/start/migrate/from-tauri-2-beta.mdx similarity index 98% rename from src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx rename to src/content/docs/ja/start/migrate/from-tauri-2-beta.mdx index 65ec5acf7f..15fd9f851b 100644 --- a/src/content/docs/jp/start/migrate/from-tauri-2-beta.mdx +++ b/src/content/docs/ja/start/migrate/from-tauri-2-beta.mdx @@ -25,7 +25,7 @@ Tauri v2 CLI には、移行作業の大部分を自動化する `migrate` コ cargo tauri migrate' /> -`migrate` コマンドの詳細については、[コマンドライン・インターフェース・リファレンス](/jp/reference/cli/#migrate) を参照してください。 +`migrate` コマンドの詳細については、[コマンドライン・インターフェース・リファレンス](/ja/reference/cli/#migrate) を参照してください。 ## 後方互換性のない変更点(Breaking Changes) diff --git a/src/content/docs/jp/start/migrate/index.mdx b/src/content/docs/ja/start/migrate/index.mdx similarity index 100% rename from src/content/docs/jp/start/migrate/index.mdx rename to src/content/docs/ja/start/migrate/index.mdx diff --git a/src/content/docs/jp/start/prerequisites.mdx b/src/content/docs/ja/start/prerequisites.mdx similarity index 97% rename from src/content/docs/jp/start/prerequisites.mdx rename to src/content/docs/ja/start/prerequisites.mdx index 9f728006f9..b8f6e383d5 100644 --- a/src/content/docs/jp/start/prerequisites.mdx +++ b/src/content/docs/ja/start/prerequisites.mdx @@ -259,7 +259,7 @@ rustup default stable-msvc **変更を有効にするために、必ずターミナル (場合によってはシステム本体) を再起動してください。** -次のステップ: Android および iOS 向けの開発を行なう場合は [モバイル関連の設定](#モバイル関連の設定) を、あるいは、JavaScript を使用する場合は [Node のインストール](#nodejs) を実行してください。それ以外の場合は、次章 [プロジェクトの作成](/jp/start/create-project/) に進んでください。 +次のステップ: Android および iOS 向けの開発を行なう場合は [モバイル関連の設定](#モバイル関連の設定) を、あるいは、JavaScript を使用する場合は [Node のインストール](#nodejs) を実行してください。それ以外の場合は、次章 [プロジェクトの作成](/ja/start/create-project/) に進んでください。 ## Node.js @@ -282,7 +282,7 @@ npm -v 「npm」が Node.js のデフォルト・パッケージ・マネージャーですが、「pnpm」や「yarn」といった別のパッケージ・マネージャーを使うこともできます。こうしたパッケージ・マネージャーを有効化するには、ターミナルにて `corepack enable` を実行してください。この処理ステップは、「npm」以外のパッケージ・マネージャーを使いたい場合にのみに必要な、任意項目です。 -次のステップ: [モバイル関連の設定](#モバイル関連の設定) または [プロジェクトの作成](/jp/start/create-project/) です。 +次のステップ: [モバイル関連の設定](#モバイル関連の設定) または [プロジェクトの作成](/ja/start/create-project/) です。 ## モバイル関連の設定 @@ -376,7 +376,7 @@ PowerShell は、再起動またはログアウトするまで、新しい環境 rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android ```` -次のステップ: [iOS 用の設定](#ios) または [プロジェクトの作成](/jp/start/create-project/)。 +次のステップ: [iOS 用の設定](#ios) または [プロジェクトの作成](/ja/start/create-project/)。 ### iOS @@ -402,15 +402,15 @@ rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim brew install cocoapods ``` -次のステップ: [プロジェクトの作成](/jp/start/create-project/). +次のステップ: [プロジェクトの作成](/ja/start/create-project/). ## 問題が発生したら -インストール中に何か問題が発生したら、「[トラブルシューティングに関する項目](/jp/develop/debug/)」を参照するか、「[Tauri コミュニティー](https://discord.com/invite/tauri)」に問い合わせてみてください。 +インストール中に何か問題が発生したら、「[トラブルシューティングに関する項目](/ja/develop/debug/)」を参照するか、「[Tauri コミュニティー](https://discord.com/invite/tauri)」に問い合わせてみてください。 -すべての必要事項をインストールし終えましたので、これで [はじめての Tauri プログラム](/jp/start/create-project/) を作成する準備が整いました! +すべての必要事項をインストールし終えましたので、これで [はじめての Tauri プログラム](/ja/start/create-project/) を作成する準備が整いました! From cf7c6b39714537c6f4d3704d68d60e60493a21b2 Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Sun, 9 Feb 2025 00:05:02 -0300 Subject: [PATCH 27/38] fix lunaria config --- lunaria.config.json | 1 - 1 file changed, 1 deletion(-) diff --git a/lunaria.config.json b/lunaria.config.json index 8628df1ba7..f4244dbcc7 100644 --- a/lunaria.config.json +++ b/lunaria.config.json @@ -67,5 +67,4 @@ "statusByFile.heading": "Translation status by file" } } -} } \ No newline at end of file From cab5ade75c9545f48be0ece38c7ac0dda36b1b0f Mon Sep 17 00:00:00 2001 From: Ayres Vitor Date: Sun, 9 Feb 2025 00:38:48 -0300 Subject: [PATCH 28/38] format --- lunaria.config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lunaria.config.json b/lunaria.config.json index f4244dbcc7..98244281ef 100644 --- a/lunaria.config.json +++ b/lunaria.config.json @@ -67,4 +67,4 @@ "statusByFile.heading": "Translation status by file" } } -} \ No newline at end of file +} From a4c72f542bc4dcca8d1b2fd6886ea3b6867474e6 Mon Sep 17 00:00:00 2001 From: J1-takai Date: Mon, 10 Feb 2025 17:58:16 +0900 Subject: [PATCH 29/38] Update as of 25/02/10 --- src/content/docs/ja/doc-JP Rev Control.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/content/docs/ja/doc-JP Rev Control.md b/src/content/docs/ja/doc-JP Rev Control.md index 331efbb2af..a75d88b852 100644 --- a/src/content/docs/ja/doc-JP Rev Control.md +++ b/src/content/docs/ja/doc-JP Rev Control.md @@ -139,7 +139,7 @@ For the details of EN/JP doc status, see the listing below:
文書番号の | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | | :------: | :---------- | :------: | :---------- | -| **00** | 2024/10/01 | **00** | 2025/01/09 | +| **00** | 2024/10/01 | **00** | 2025/02/05 | ### concept/architecture.mdx @@ -165,10 +165,18 @@ For the details of EN/JP doc status, see the listing below:
文書番号の | :------: | :---------- | :------: | :---------- | | **00** | 2024/11/27 | **00** | 2025/01/18 | -### concept/I-P-C/brownfield.mdx +### concept/I-P-C/brownfield.md | EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | -| :------: | :---------- | :------: | :---------- | -| **00** | 2024/10/01 | **00** | 2025/01/18 | +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/01 | **00** | 2025/01/18 | + +### concept/I-P-C/isolation.md + +| EN Doc # | EN Doc Date | JP Doc # | JP Doc Date | +| :---: | :--- | :---: | :--- | +| **00** | 2024/10/15 | **00** | 2025/01/27 | + + Cont. From 26fb977d25fc2a2f91eeb8d3e849af76482b98b8 Mon Sep 17 00:00:00 2001 From: J1-takai Date: Mon, 10 Feb 2025 18:06:02 +0900 Subject: [PATCH 30/38] update as of 25/02/10 --- .../Inter-Process Communication/brownfield.md | 36 ++++ .../Inter-Process Communication/index.mdx | 99 +++++++++ .../Inter-Process Communication/isolation.md | 121 +++++++++++ src/content/docs/ja/concept/architecture.mdx | 192 ++++++++++++++++++ src/content/docs/ja/concept/index.mdx | 44 ++++ src/content/docs/ja/concept/process-model.md | 88 ++++++++ src/content/docs/ja/concept/size.mdx | 76 +++++++ 7 files changed, 656 insertions(+) create mode 100644 src/content/docs/ja/concept/Inter-Process Communication/brownfield.md create mode 100644 src/content/docs/ja/concept/Inter-Process Communication/index.mdx create mode 100644 src/content/docs/ja/concept/Inter-Process Communication/isolation.md create mode 100644 src/content/docs/ja/concept/architecture.mdx create mode 100644 src/content/docs/ja/concept/index.mdx create mode 100644 src/content/docs/ja/concept/process-model.md create mode 100644 src/content/docs/ja/concept/size.mdx diff --git a/src/content/docs/ja/concept/Inter-Process Communication/brownfield.md b/src/content/docs/ja/concept/Inter-Process Communication/brownfield.md new file mode 100644 index 0000000000..11a8efc246 --- /dev/null +++ b/src/content/docs/ja/concept/Inter-Process Communication/brownfield.md @@ -0,0 +1,36 @@ +--- +title: ブラウンフィールド型(Brownfield Pattern) +--- + +_**デフォルトの IPC パターンです**_ + +このパターンは、Tauri を使用する上で最も簡単で分かりやすいものです。というのも、既存のフロントエンド・プロジェクトと可能な限り互換性を持たせようとしているからです。つまり、既存の Web フロントエンドがブラウザー内で使用するもの以外には、他に何も必要としないということです。 +既存のブラウザー・アプリケーションで動作する _**すべて**_ が、そのまま動作するというわけではありません。 + +一般的な「ブラウンフィールド」型のソフトウェア開発について馴染みがない場合は、Wikipedia の記事 [Brownfield Wikipedia article](日本語版なし)に判りやすい概説があります。 +Tauri の場合、(ブラウンフィールド型開発の対象となる)既存のソフトウェアとは、レガシー・システムではなく、現行ブラウザーのサポートと動作です。 + +## 設定 + +ブラウンフィールド型開発はデフォルトのパターンなので、設定オプションを指定する必要はありません。 +明示的に設定するには、`tauri.conf.json` 構成ファイル内の `tauri > pattern` オブジェクトを使用します。 + +```json +{ + "tauri": { + "pattern": { + "use": "brownfield" + } + } +} +``` + +_**ブラウンフィールド型では追加の設定オプションはありません。**_ + +[brownfield wikipedia article]: https://en.wikipedia.org/wiki/Brownfield_(software_development) + + +
+【※ この日本語版は、「Oct 01, 2024 英語版」に基づいています】
+Doc-JP 2.00.00 +
diff --git a/src/content/docs/ja/concept/Inter-Process Communication/index.mdx b/src/content/docs/ja/concept/Inter-Process Communication/index.mdx new file mode 100644 index 0000000000..33d8cd745a --- /dev/null +++ b/src/content/docs/ja/concept/Inter-Process Communication/index.mdx @@ -0,0 +1,99 @@ +--- +title: プロセス間通信 +sidebar: + label: Overview + order: 1 +--- + +import { CardGrid, LinkCard } from '@astrojs/starlight/components'; + +「プロセス間通信」(IPC)は、単独のプロセスが安全に通信することを可能にし、より複雑なアプリケーションを構築するための鍵となります。 + +具体的な IPC のパターンについては、次のガイドを参照してください: + + + + + + +Tauri は、[Asynchronous Message Passing](非同期メッセージ・パッシング、[日本語版リンク](https://ja.wikipedia.org/wiki/メッセージ_(コンピュータ)))と呼ばれる特別なスタイルのプロセス間通信を使用します。この方法では、プロセス同士が単純なデータ表現を使用してシリアル化された「_リクエスト_(要求)」と「_レスポンス_(応答)」をやり取りします。メッセージ・パッシングは、インターネット上のクライアント・サーバー通信に使用される仕組みであるため、Web 開発の経験がある人なら誰でも馴染みがあるはずです。 + +メッセージ・パッシングは、受信者が必要に応じて「リクエスト」を拒否または破棄できるため、共有メモリ方式や直接関数アクセス方式よりも安全な手法です。たとえば、Tauri コア・プロセスが「リクエスト」が悪意のあるものであると判断した場合、そのリクエストは破棄され、対応する関数処理は実行されません。 + +以下では、Tauri の二つの IPC プリミティブ(同期基本命令)である「イベント `Events` 」と「コマンド `Commands` 」について詳しく説明します。 + +## イベント + +「イベント」は、自動追尾型・一方向性の IPC メッセージで、ライフサイクル中の各イベントと状態の変化を伝達するのに最適です。 +[コマンド](#コマンド) とは異なり、「イベント」はフロントエンドと Tauri コアの両方から発行できます。 + +
+ +```d2 sketch pad=50 +shape: sequence_diagram + +Frontend: { + shape: rectangle + label: "Webview\nFrontend" +} +Core: { + shape: rectangle + label: "Core\nBackend" +} + +Frontend -> Core: "イベント"{style.animated: true} +Core -> Frontend: "イベント"{style.animated: true} +``` + +
コアと Webview 間をやり取りされるイベント
+
+ +## コマンド + +Tauri は、IPC メッセージに加えて、[foreign function interface](外部関数インターフェース、[日本語版リンク](https://ja.wikipedia.org/wiki/Foreign_function_interface))のような抽象化も提供します[^1]。基本主要 API である `invoke` は、ブラウザの `fetch` API に似ており、フロントエンドが Rust 関数を呼び出し、引数を渡して、データを受信できるようにします。 + +このメカニズムは、内部で [JSON-RPC] のようなプロトコルを使用してリクエストとレスポンスをシリアル化するので、すべての引数と戻りデータは JSON の規格に従ってシリアル化可能である必要があります。 + +
+ +```d2 sketch pad=50 +shape: sequence_diagram + + +Frontend: { + label: "Webview\nFrontend" +} + +Core: { + label: "Core\nBackend" +} +InvokeHandler: { + label: "Invoke\nHandler" +} + +Frontend -> Core: "IPC リクエスト"{style.animated: true} +Core -> InvokeHandler: "コマンド 呼び出し"{style.animated: true} +InvokeHandler -> Core: "戻り値 シリアル化"{style.animated: true} +Core -> Frontend: "レスポンス"{style.animated: true} +``` + +
コマンド呼び出しに関与する IPC メッセージ
+
+ +[^1]: コマンドは、内部でメッセージ・パッシングを使用しているため、実際の「外部関数インターフェース」と同じようなセキュリティ上の落とし穴はありません。 + +[Asynchronous Message Passing]: https://en.wikipedia.org/wiki/Message_passing#Asynchronous_message_passing +[json-rpc]: https://www.jsonrpc.org +[foreign function interface]: https://en.wikipedia.org/wiki/Foreign_function_interface + + +
+【※ この日本語版は、「Nov 27, 2024 英語版」に基づいています】
+Doc-JP 2.00.00 +
diff --git a/src/content/docs/ja/concept/Inter-Process Communication/isolation.md b/src/content/docs/ja/concept/Inter-Process Communication/isolation.md new file mode 100644 index 0000000000..7eeb1b2dca --- /dev/null +++ b/src/content/docs/ja/concept/Inter-Process Communication/isolation.md @@ -0,0 +1,121 @@ +--- +title: アイソレーション型(Isolation Pattern) +--- + +アイソレーション(分離・隔絶)型は、フロントエンドから送信された Tauri API メッセージが Tauri コア部に到達する前に、JavaScript を使用して傍受・変更する方法です。アイソレーション型で挿入される安全な JavaScript コードは、アイソレーション・アプリケーションと呼ばれます。 + +## アイソレーション型の必要性 + +アイソレーション型の目的は、Tauri コア部への望ましくないあるいは悪意のあるフロントエンドからの呼び出しから、アプリケーションを保護するためのメカニズムを開発者に提供することです。アイソレーション型の必要性は、フロントエンドで実行されている信頼できないコンテンツから生じる脅威、このような脅威は多くの依存関係を持つアプリケーションによくあるケースですが、そこから生まれました。アプリケーションが遭遇する可能性のある多くの脅威源のリストについては、[セキュリティ:脅威モデル] を参照してください。 + +アイソレーション型を設計する上で考慮された、上記で記述された最大の脅威モデルは「開発の脅威」でした。多くのフロントエンドのビルド・ツールが、しばしば深くネスト化された数十(もしくは数百)の依存関係で成り立っているだけではなく、複雑なアプリケーションにも、最終出力版にバンドルされる大量の(これも深くネスト化された)依存関係がある場合があります。 + +## アイソレーション型を使用する局面 + +Tauri は、アイソレーション型が使用できる場合には常に使用することを強く推奨しています。アイソレーション型のアプリケーションではフロントエンドからの _**すべての**_ メッセージを「捕捉」(インターセプト)するため、アイソレーション型が _常に_ 使用されます。 + +さらに Tauri では、外部の Tauri API を使用するときは常に、アプリケーションを「封鎖」(ロックダウン)することを強く推奨しています。アプリの開発者は、安全なアイソレーション・アプリケーション(分離アプリケーション)を利用して IPC 入力を検証し、その入力内容が確実に想定されるパラメータの範囲内にあることを確かめます。事例としては、ファイルの読み取りまたは書き込みの呼び出しが、そのアプリケーションの想定外の場所へのパスにアクセスしようとしていないかを確認したり、あるいは、Tauri API の「HTTP フェッチコール」が 「Origin ヘッダー」をそのアプリケーションが想定しているもののみに設定しているかを確認したりすることです。 + +とはいえ、フロントエンドからの _**すべての**_ メッセージを捕捉するため、[Events] などの常時動作 API でも動作します。一部のイベントでは、アプリ独自の Rust コードにアクションを実行させる可能性があるので、同様の検証手法で対応することができます。 + +## アイソレーション型の適用 + +アイソレーション型で重要なのは、フロントエンドと Tauri コアの間に安全なアプリケーションを挿入して、IPC 受信メッセージを捕捉し修正することです。これは、`