Skip to content

Commit

Permalink
ja: Update ja/api/configuration-modules.md (#753)
Browse files Browse the repository at this point in the history
* Update ja/api/configuration-modules.md for japanese translation

* Fix type, add some word.
  • Loading branch information
araj-dev authored and potato4d committed Sep 13, 2018
1 parent 3f76dea commit ffc5f07
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions ja/api/configuration-modules.md
@@ -1,41 +1,41 @@
---
title: "API: The modules Property"
description: Modules are Nuxt.js extensions which can extend it's core functionality and add endless integrations.
title: 'API: modules プロパティ'
description: モジュールは、Nuxt.js のコア機能を拡張し、無限のインテグレーションを加える Nuxt.js の拡張機能です。
---

# The *modules* Property
# *modules* プロパティ

- Type: `Array`
- : `Array`

> Modules are Nuxt.js extensions which can extend it's core functionality and add endless integrations. [Learn More](/guide/modules)
> モジュールは、Nuxt.js のコア機能を拡張し、無限のインテグレーションを加える Nuxt.js の拡張機能です。 [より深く学ぶ](/guide/modules)
Example (`nuxt.config.js`):
(`nuxt.config.js`):

```js
module.exports = {
modules: [
// Using package name
// パッケージの名前を使用する
'@nuxtjs/axios',

// Relative to your project srcDir
// プロジェクトの srcDir と相対的
'~/modules/awesome.js',

// Providing options
// オプションを渡す
['@nuxtjs/google-analytics', { ua: 'X1234567' }],

// Inline definition
// インライン定義
function () { }
]
}
```
Module developers usually provide additional needed steps and details for usage.
モジュールの開発者は通常、使用するために必要なステップと詳細を提供します。

Nuxt.js tries to resolve each item in the modules array using node require path (in the `node_modules`) and then
Will be resolved from project `srcDir` if `~` alias is used. Modules are executed sequential so the order is important.
Nuxt.js は node の読み込みパス (`node_modules`の中) を用いてモジュール配列内の各要素を解決しようとします。`~` エイリアスが使用されている場合、
プロジェクトの `srcDir` から解決されます。
モジュールは順番に実行されるため、順序が重要です。

Modules should export a function to enhance nuxt build/runtime and optionally return a promise until their job is finished.
Note that they are required at runtime so should be already transpiled if depending on modern ES6 features.
モジュールは nuxt のビルド/ランタイムを強化する機能をエクスポートし、必要に応じてそれらのジョブが完了するまで promise を返却する必要があります。
実行時に必要とされるので、最新のES6機能に依存する場合には、すでにトランスパイルされている必要があることに注意して下さい。


Please see [Modules Guide](/guide/modules) for more detailed information on how they work or if interested developing your own module.
Also we have provided an official [Modules](https://github.com/nuxt-community/awesome-nuxt#modules) Section listing dozens of production ready modules made by Nuxt Community.
モジュールの仕組みや独自のモジュール開発に興味がある場合、より詳細な情報については [モジュールガイド](/guide/modules) を参照して下さい。
また、 Nuxt Community によって作られた、実績あるモジュールを掲載した公式の [モジュール](https://github.com/nuxt-community/awesome-nuxt#modules) セクションも提供しています。

0 comments on commit ffc5f07

Please sign in to comment.