ngPluralize

翻訳中です。

概要

ngPluralizeは、en-USローカライズルールに沿って表示するメッセージのディレクティブです。 これらのルールは、angular.jsにバンドルされていますが上書きすることが可能です。(開発者ガイドのi18n参照) plural categoriesと表示する文字列のマッピングを指定することで、ngPluralizeを設計します。

複数カテゴリーと数字指定のルール

Angularはデフォルトのen-USロケールで、"one"と"other"の2つのplural categoriesが存在します。

While a plural category may match many numbers (for example, in en-US locale, "other" can match any number that is not 1), an explicit number rule can only match one number. For example, the explicit number rule for "3" matches the number 3. There are examples of plural categories and explicit number rules throughout the rest of this documentation.

 Back to top

© 2017 Google
Licensed under the Creative Commons Attribution License 3.0.

このページは、ページトップのリンク先のAngularJS公式ドキュメント内のページを翻訳した内容を基に構成されています。 下記の項目を確認し、必要に応じて公式のドキュメントをご確認ください。 もし、誤訳などの間違いを見つけましたら、 @tomofまで教えていただければ幸いです。

  • AngularJSの更新頻度が高いため、元のコンテンツと比べてドキュメントの情報が古くなっている可能性があります。
  • "訳注:"などの断わりを入れた上で、日本人向けの情報やより分かり易くするための追記を行っている事があります。