Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
language は TextTrack インターフェイスの読み取り専用プロパティで、このテキストトラックの言語を返します。
これは HTML の lang 属性と同じ値を使用します。これらの値は RFC 5646: Tags for Identifying Languages (BCP 47 とも) で文書化されています。
言語識別子を格納した文字列。例: 米国英語なら "en-US" 、ブラジルポルトガル語なら "pt-BR" 。
以下の例では、 language の値がコンソールに表示されます。
| HTML # dom-texttrack-language-dev |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年4月12日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.