Localization
localization
¶
Public localization constants for the Scrape.do Google Plugin
Attributes:
| Name | Type | Description |
|---|---|---|
GOOGLE_LANGUAGE_CODES |
FrozenSet[str]
|
ISO 639-1 language codes accepted
by the |
GOOGLE_COUNTRY_CODES |
FrozenSet[str]
|
ISO 3166-1 alpha-2 country codes
accepted by the |
GOOGLE_DOMAINS |
FrozenSet[str]
|
Regional |
GOOGLE_LANGUAGE_RESTRICT_VALUES |
FrozenSet[str]
|
Strict
|
Validation Policy
-
These are PUBLIC frozensets meant for opt-in client-side validation
-
The endpoint parameter models keep
hl / gl / google_domain / lras plainstrand DO NOT validate against these sets at construction time -
Scrape.domay add new codes server-side faster than this SDK can ship them -
Use them in your own pre-flight checks if you want strong feedback for typos
Validation Policy Example
Source
Reconstructed from the official Localization Reference