未分類
Laravel Package to translate with a translation API
Today I would like to share about a laravel package that I wrote recently. That package is to translate languages easily using a translation API. I had to use a translation api in my project. Then I wanted to write short code for translation feature and reuse it for future. So I created this package locally.
Methods that can be used
After creating Translation Object, you can use the following methods.
$obj = new Translate();
Translation
$translated_text = $obj->translate('Hello World", 'EN', 'JA');
echo $translated_text;
Getting supported languages
$languages = $obj->languages();
foreach($languages as $lang){
echo $lang['language']."-".$lang['name'].'<br>';
}
Getting supported source–languages
$source_languages = $obj->languages('source');
foreach($source_languages as $lang){
echo $lang['language']."-".$lang['name'].'<br>';
}
Getting supported target–languages
$target_languages = $obj->languages('target');
foreach($target_languages as $lang){
echo $lang['language']."-".$lang['name'].'<br>';
}
You can monitor your usage of translation API
$usage= $obj->usage();
echo $usage['character_count'].' characters have been used. Maximum number of characters that can be translated in the current billing period are '.$usage['character_limit'];
You can setup a timeout in requesting api
$obj->setTimeout(10);
Hope you enjoyed that.
By Asahi
kishimoto at 2021年10月26日 10:00:00
- 2021年10月21日
- 未分類
Self Introduction
Pleasure to meet you all. I am Ei Ei Phyo. Japanese name is tsuki. I am 26. I am from Myanmar.
Now I am working as a remote web developer in GIGAS JAPAN. Even thought this is my third week at GIGAS JAPAN, I’ve already found out I have to learn a lot and I believe I can learn it through all talented people working in this amazing working environment.
Every stay safe.
By tuski
kishimoto at 2021年10月21日 10:10:00
- 2021年10月19日
- 未分類
Self Introduction
I am Wai Thaw Oo. I am from Myanmar. My japanese name is Asahi. I am 23 years old.
Now I am working as a Remote Web Developer in GIGAS JAPAN Co., Ltd.
My hobbies are playing guitars, reading and swimming. Sometimes I play chess. I also enjoy writing technical blogs and sharing them with others.
I will write technical articles every Tuesday.
Nice to meet you all. Thank you very much.
By Asahi
kishimoto at 2021年10月19日 10:00:00
GPUマイニングをやってみました
tanaka at 2021年09月08日 10:00:05
- 2021年06月11日
- 未分類
Tips for Excel calculation
Today I would like to share some important tips about excel calculation. Sometimes, we change today date but it change automatically arriving today date when we open the file.
In this time, how to fix it.
How to Change Excel Calculation Options
Select the data we want to change and go the Excel ribbon > Formulas tab > Calculation group, click the Calculation Options button and select one of the following options:

Automatic (default) – tells Excel to automatically recalculate all dependent formulas every time any value, formula, or name referenced in those formulas is changed.
Manual – turns off automatic calculation in Excel. Open workbooks will be recalculated only when you explicitly do.
How to force recalculation in Excel
To manually recalculate all open worksheets and update all open chart sheets, go to the Formulas tab > Calculation group, and click the Calculate Now button.

Hope you find it interesting and useful.
By Ami
kishimoto at 2021年06月11日 10:00:36