API
include
parameters, and _config.yaml
or _posts
/_pages
Frontmatter, may accept the following customizations
translate_id
-
Type: string
-
Default:
"translate_selection"
HTML id
that Google Translate script should inject option
and select
elements into
language
-
Type: string
-
Default:
"en"
Two letter language code that pages are written in
translate_callback
-
Type: string
-
Default:
"google_translate_callback"
JavaScript function name that Google Translate should call when a language option
is chosen
auto_translate
-
Type: boolean
-
Default:
false
When true
adds JavaScript function and event listener that will automatically select preferred language if detectable
disable_translate
-
Type: boolean
-
Default:
false
When true
disables all features of includes-translate
within page/post or entire site