Google Translate
1 domain | 5 domains | 25 domains |
---|---|---|
$24.99 | $49.99 | $99.99 |
Buying the extension gives you a license for 1 year (renewable every year), that includes support and access to all extension updates. Prices are in USD.
🛍️ Buy “Google Translate” Extension
Directive @strTranslate
to translate a field value to over 100 languages using the Google Translate API.
Description permalink
Add directive @strTranslate
to any field of type String
, to translate it to the desired language.
For instance, this query translates the post's title
and excerpt
fields from English to French:
{
posts {
enTitle: title
frTitle: title @strTranslate(from: "en", to: "fr")
enExcerpt: excerpt
frExcerpt: excerpt @strTranslate(from: "en", to: "fr")
}
}
...producing:
{
"data": {
"posts": [
{
"enTitle": "Welcome to a single post full of blocks!",
"frTitle": "Bienvenue dans un poste unique plein de blocs !",
"enExcerpt": "When I look back on my past and think how much time I wasted on nothing, how much time has been lost in futilities, errors, laziness, incapacity to live; how little I appreciated it, how many times I sinned against my heart and soul-then my heart bleeds. Life is a gift, life is happiness, every…",
"frExcerpt": "Quand je repense à mon passé et que je pense au temps que j'ai perdu pour rien, au temps perdu en futilités, en erreurs, en paresse, en incapacité de vivre ; combien je l'ai peu apprécié, combien de fois j'ai péché contre mon cœur et mon âme, alors mon cœur saigne. La vie est un cadeau, la vie est un bonheur, chaque…"
},
{
"enTitle": "Explaining the privacy policy",
"frTitle": "Expliquer la politique de confidentialité",
"enExcerpt": "Our privacy policy is at https://gato-graphql-pro.lndo.site/privacy/, and we are based in Carimano.",
"frExcerpt": "Notre politique de confidentialité se trouve sur https://gato-graphql-pro.lndo.site/privacy/, et nous sommes basés à Carimano."
},
{
"enTitle": "HTTP caching improves performance",
"frTitle": "La mise en cache HTTP améliore les performances",
"enExcerpt": "Categories Block Latest Posts Block Did you know? We are not rich by what we possess but by what we can do without. Patience is the strength of the weak, impatience is the weakness of the strong.",
"frExcerpt": "Catégories Bloquer les derniers messages Bloquer Le saviez-vous ? Nous ne sommes pas riches de ce que nous possédons mais de ce dont nous pouvons nous passer. La patience est la force du faible, l'impatience est la faiblesse du fort."
}
]
}
}
List of languages permalink
You can translate your content to any of the following languages:
Code | Language |
---|---|
af | Afrikaans |
sq | Albanian |
am | Amharic |
ar | Arabic |
hy | Armenian |
az | Azerbaijani |
eu | Basque |
be | Belarusian |
bn | Bengali |
bs | Bosnian |
bg | Bulgarian |
ca | Catalan |
zh | Chinese (Simplified) |
zh-TW | Chinese (Traditional) |
co | Corsican |
hr | Croatian |
cs | Czech |
da | Danish |
nl | Dutch |
en | English |
eo | Esperanto |
et | Estonian |
fi | Finnish |
fr | French |
fy | Frisian |
gl | Galician |
ka | Georgian |
de | German |
el | Greek |
gu | Gujarati |
ht | Haitian Creole |
ha | Hausa |
he | Hebrew |
hi | Hindi |
hu | Hungarian |
is | Icelandic |
ig | Igbo |
id | Indonesian |
ga | Irish |
it | Italian |
ja | Japanese |
jv | Javanese |
kn | Kannada |
kk | Kazakh |
km | Khmer |
rw | Kinyarwanda |
ko | Korean |
ku | Kurdish |
ky | Kyrgyz |
lo | Lao |
la | Latin |
lv | Latvian |
lt | Lithuanian |
lb | Luxembourgish |
mk | Macedonian |
mg | Malagasy |
ms | Malay |
ml | Malayalam |
mt | Maltese |
mi | Maori |
mr | Marathi |
mn | Mongolian |
my | Myanmar (Burmese) |
ne | Nepali |
no | Norwegian |
ny | Nyanja (Chichewa) |
or | Odia (Oriya) |
ps | Pashto |
fa | Persian |
pl | Polish |
pt | Portuguese (Portugal, Brazil) |
pa | Punjabi |
ro | Romanian |
ru | Russian |
sm | Samoan |
gd | Scots Gaelic |
sr | Serbian |
st | Sesotho |
sn | Shona |
sd | Sindhi |
si | Sinhala (Sinhalese) |
sk | Slovak |
sl | Slovenian |
so | Somali |
es | Spanish |
su | Sundanese |
sw | Swahili |
sv | Swedish |
tl | Tagalog (Filipino) |
tg | Tajik |
ta | Tamil |
tt | Tatar |
te | Telugu |
th | Thai |
tr | Turkish |
tk | Turkmen |
uk | Ukrainian |
ur | Urdu |
ug | Uyghur |
uz | Uzbek |
vi | Vietnamese |
cy | Welsh |
xh | Xhosa |
yi | Yiddish |
yo | Yoruba |
zu | Zulu |
Bundles including extension permalink
Recipes using extension permalink
- Translating block content in a post to a different language
- Bulk translating block content in multiple posts to a different language
🛍️ Buy “Google Translate” Extension