語言值
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁列出可在搜尋引擎使用者介面 (UI) 中使用的語言代碼,例如搜尋按鈕。你搜尋引擎的語言,也能提升該語言的搜尋結果排名;但不會篩除其他語言的結果。例如,假設您將搜尋引擎語言設為中文,則在搜尋結果中,中文網頁的優先順序會高於英文網頁。
您可以在控制台或內容檔案中指定語言。在控制台的「基本」分頁中,從「搜尋引擎語言」下拉式清單中選取語言。在結構定義檔案中,定義 CustomSearchEngine
元素的 language
屬性值,如以下範例所示:
<CustomSearchEngine volunteers="false"
language="en"
visible="false"
encoding="UTF-8">
</CustomSearchEngine>
下表列舉 language
屬性的可用值。
注意:如未指定語言,程式化搜尋引擎會使用 en
(英文) 做為預設值。
Language |
語言代碼值 |
使用者的語言代碼 |
空白值 (也就是 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 |
返回頁首
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\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)"]]