Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Add isCJ()
Browse files Browse the repository at this point in the history
  • Loading branch information
miyacorata committed May 11, 2020
1 parent e19f7b7 commit f63bc95
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/Helpers/AppHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,18 @@ function changeGetParameter(string $url, string $attribute, string $value = null
return $url;
}
}

if(!function_exists('isCJ')){
/**
* @return bool
*/
function isCJ(): bool
{
$locale = App::getLocale();
if($locale === 'ja' || substr($locale,0,2) === 'zh'){
return true;
}else{
return false;
}
}
}

0 comments on commit f63bc95

Please # to comment.