for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ChinLeung\VerboseLocalization\Concerns;
trait HasCelticVerboseMethods
{
/**
* Retrieve the translation in another locale.
*
* @param string $locale
* @return mixed
*/
abstract public function getTranslationIn(string $locale);
* Function to retrieve the translation in Irish.
public function inIrish()
return $this->getTranslationIn('ga');
}
* Function to retrieve the translation in Welsh.
public function inWelsh() : string
return $this->getTranslationIn('cy');
* Function to retrieve the translation in Scots Gaelic.
public function inScotsGaelic() : string
return $this->getTranslationIn('gd');