ค่าภาษา
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หน้านี้จะแสดงรหัสภาษาที่คุณสามารถใช้ในอินเทอร์เฟซผู้ใช้ (UI) ของเครื่องมือค้นหาของคุณ เช่น ปุ่มค้นหา ภาษาของเครื่องมือค้นหาของคุณจะช่วยเพิ่มผลการค้นหาในภาษานั้น แต่จะไม่กรองผลการค้นหาในภาษาอื่น ตัวอย่างเช่น หากคุณเลือกภาษาจีนเป็นภาษาของเครื่องมือค้นหา หน้าเว็บภาษาจีนจะมีลำดับความสำคัญสูงกว่าหน้าเว็บภาษาอังกฤษในผลการค้นหา
คุณสามารถกำหนดภาษาได้ในแผงควบคุมหรือไฟล์บริบท ในแท็บ พื้นฐาน ของแผงควบคุม ให้เลือกภาษาจากรายการแบบเลื่อนลง ภาษาของเครื่องมือค้นหา ในไฟล์บริบท ให้ระบุค่าของแอตทริบิวต์ language
ขององค์ประกอบ CustomSearchEngine
ตามตัวอย่างต่อไปนี้
<CustomSearchEngine volunteers="false"
language="en"
visible="false"
encoding="UTF-8">
</CustomSearchEngine>
ตารางต่อไปนี้แจกแจงค่าที่ใช้ได้สำหรับแอตทริบิวต์ language
หมายเหตุ: หากคุณไม่ระบุภาษา Programmable Search Engine จะใช้ 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)"]]