Download the PHP package akibtanjim/google-translate without Composer
On this page you can find all versions of the php package akibtanjim/google-translate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download akibtanjim/google-translate
More information about akibtanjim/google-translate
Files in akibtanjim/google-translate
Package google-translate
Short Description This package is built for laravel with a view to translate any text from source language to destination language using Google Translate.
License MIT
Homepage https://github.com/akibtanjim/google-translate
Informations about the package google-translate
Laravel Google Translator
This package is built for laravel with a view to translate any text from source language to destination language using Google Translate.
Installation
Install using composer:
After updating composer, add the ServiceProvider to the providers array in
In the providers section add the below line:
add the Alias to aliases section of config/app.php:
Useage
Create a new directory and create a new file named there. Then paste the code below
Open your file and add the below line of code under section:
Now open your command promt and run the following comment.
Example
Open command prompt and wrtie the following command:
Now paste the following code:
Now create a view file in the and paste the below code:
In your paste the following code.
Now open your file and paste the follwing code:
Open command prompt and run:
Open the follwing link in your browser and change the language and see translation in action.
Supported Languages and their shortcode
Language | Short Code |
---|---|
Afrikaans | af |
Albanian | sq |
Amharic | am |
Arabic | ar |
Armenian | hy |
Azeerbaijani | az |
Basque | eu |
Belarusian | be |
Bengali | bn |
Bosnian | bs |
Bulgarian | bg |
Catalan | ca |
Cebuano | ceb (ISO-639-2) |
Chinese (Simplified) | zh-CN (BCP-47) |
Chinese (Traditional) | zh-TW (BCP-47) |
Corsican | co |
Croatian | hr |
Czech | cs |
Danish | da |
Dutch | nl |
English | en |
Esperanto | eo |
Estonian | et |
Finnish | fi |
French | fr |
Frisian | fy |
Galician | gl |
Georgian | ka |
German | de |
Greek | el |
Gujarati | gu |
Haitian Creole | ht |
Hausa | ha |
Hawaiian | haw (ISO-639-2) |
Hebrew | iw |
Hindi | hi |
Hmong | hmn (ISO-639-2) |
Hungarian | hu |
Icelandic | is |
Igbo | ig |
Indonesian | id |
Irish | ga |
Italian | it |
Japanese | ja |
Javanese | jw |
Kannada | kn |
Kazakh | kk |
Khmer | km |
Korean | ko |
Kurdish | ku |
Kyrgyz | ky |
Lao | lo |
Latvian | la |
Latvian | lv |
Lithuanian | lt |
Luxembourgish | lb |
Macedonian | mk |
Malagasy | mg |
Malay | ms |
Malayalam | ml |
Maltese | mt |
Maori | mi |
Marathi | mr |
Mongolian | mn |
Myanmar (Burmese) | my |
Nepali | ne |
Norwegian | no |
Nyanja (Chichewa) | ny |
Pashto | ps |
Persian | fa |
Polish | pl |
Portuguese (Portugal, Brazil) | pt |
Punjabi | pa |
Romanian | ro |
Russian | ru |
Samoan | sm |
Scots Gaelic | gd |
Serbian | sr |
Sesotho | st |
Shona | sn |
Sindhi | sd |
Sinhala (Sinhalese) | si |
Slovak | sk |
Slovenian | sl |
Somali | so |
Spanish | es |
Sundanese | su |
Swahili | sw |
Swedish | sv |
Tagalog (Filipino) | tl |
Tajik | tg |
Tamil | ta |
Telugu | te |
Thai | th |
Turkish | tr |
Ukrainian | uk |
Urdu | ur |
Uzbek | uz |
Vietnamese | vi |
Welsh | cy |
Xhosa | xh |
Yiddish | yi |
Yoruba | yo |
Zulu | zu |
Limitations:
- This package can only translate upto 5000 characters at a time.
Authors
- Akib Tanjim - akibtanjim
- Mohammad Rubab - rubab2020