言語値
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このページでは、検索ボタンなど、検索エンジンのユーザー インターフェース(UI)で使用できる言語コードの一覧を示します。検索エンジンの言語によっても、その言語での検索結果が上昇します。他の言語の検索結果は除外されませんたとえば、検索エンジンの言語に中国語を選択した場合、検索結果では中国語のウェブページが英語のウェブページよりも優先されます。
言語は、コントロール パネルまたはコンテキスト ファイルで定義できます。コントロール パネルの [基本] タブで、[検索エンジンの言語] プルダウン リストから言語を選択します。コンテキスト ファイルで、次の例のように CustomSearchEngine
要素の language
属性の値を定義します。
<CustomSearchEngine volunteers="false"
language="en"
visible="false"
encoding="UTF-8">
</CustomSearchEngine>
次の表に、language
属性で使用可能な値を示します。
注: 言語を指定しない場合、プログラム可能検索エンジンはデフォルト値として en
(英語)を使用します。
言語 |
言語コードの値 |
ユーザーの言語 / 地域 |
空の値(language=" " ) |
アラビア語 |
ar |
ブルガリア語 |
bg |
カタロニア語 |
ca |
クロアチア語 |
hr |
中国語(簡体) |
zh-Hans |
中国語(繁体) |
zh-Hant |
チェコ語 |
cs |
デンマーク語 |
da |
オランダ語 |
nl |
英語 (デフォルト) |
en |
フィリピン語 |
fil |
フィンランド語 |
fi |
フランス語 |
fr |
ドイツ語 |
de |
ギリシャ語 |
el |
ヘブライ語 |
he |
ヒンディー語 |
hi |
ハンガリー語 |
hu |
インドネシア語 |
id |
イタリア語 |
it |
日本語 |
ja |
韓国語 |
ko |
ラトビア語 |
lv |
リトアニア語 |
lt |
ノルウェー語 |
no |
ポーランド語 |
pl |
ポルトガル語 |
pt |
ルーマニア語 |
ro |
ロシア語 |
ru |
セルビア語 |
sr |
スロバキア語 |
sk |
スロベニア語 |
sl |
スペイン語 |
es |
スウェーデン語 |
sv |
タイ語 |
th |
トルコ語 |
tr |
ウクライナ語 |
uk |
ベトナム語 |
vi |
トップへ戻る
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eThis page provides language codes for your search engine's user interface and for boosting search results in that language, but it does not filter out other languages.\u003c/p\u003e\n"],["\u003cp\u003eYou can set the language code in the control panel or by editing the \u003ccode\u003elanguage\u003c/code\u003e attribute of the \u003ccode\u003eCustomSearchEngine\u003c/code\u003e element in your context file.\u003c/p\u003e\n"],["\u003cp\u003eA comprehensive table lists all supported language codes and their corresponding languages, with \u003ccode\u003een\u003c/code\u003e (English) as the default if no language is specified.\u003c/p\u003e\n"]]],[],null,["# Language Values\n\nThis page lists the language code you can use in the user interface (UI) of your search engine, such as the search button. The language of you search engine also boosts results in that language; however it does not filter out results in other languages. For example, if you selected Chinese as your search engine language, Chinese webpages will be given higher priority over English webpages in the search results.\n\nYou can define the language either in the control panel or the [context file](/custom-search/docs/context#attributes). In the the **Basics** tab of the control panel, you select the language from the **Search engine language** drop-down list. In the context file, you define the value of `language` attribute of the `CustomSearchEngine` element, as in the following example: \n\n```text\n\u003cCustomSearchEngine volunteers=\"false\"\n language=\"en\"\n visible=\"false\"\n encoding=\"UTF-8\"\u003e\n\u003c/CustomSearchEngine\u003e \n```\n\nThe following table enumerates the available values for the `language` attribute.\n\n**Note:** If you do not specify a language, Programmable Search Engine will use `en` (English) as the default value.\n\n| Language | Language Code Value |\n|-----------------------|---------------------------------------|\n| locale of your user | empty value (that is, `language=\" \"`) |\n| Arabic | `ar` |\n| Bulgarian | `bg` |\n| Catalan | `ca` |\n| Croatian | `hr ` |\n| Chinese (Simplified) | `zh-Hans` |\n| Chinese (Traditional) | `zh-Hant` |\n| Czech | `cs` |\n| Danish | `da` |\n| Dutch | `nl` |\n| English (default) | `en` |\n| Filipino | `fil` |\n| Finnish | `fi` |\n| French | `fr` |\n| German | `de` |\n| Greek | `el` |\n| Hebrew | `he` |\n| Hindi | `hi` |\n| Hungarian | `hu` |\n| Indonesian | `id` |\n| Italian | `it` |\n| Japanese | `ja` |\n| Korean | `ko` |\n| Latvian | `lv` |\n| Lithuanian | `lt` |\n| Norwegian | `no` |\n| Polish | `pl` |\n| Portuguese | `pt` |\n| Romanian | `ro` |\n| Russian | `ru` |\n| Serbian | `sr` |\n| Slovak | `sk` |\n| Slovenian | `sl` |\n| Spanish | `es` |\n| Swedish | `sv` |\n| Thai | `th` |\n| Turkish | `tr` |\n| Ukrainian | `uk` |\n| Vietnamese | `vi` |\n[ ]\n\n[Back to top](#top)"]]