src/app/dbtext/model/DbtextService.php
public function t($ns, string $key, array $args = null, N2nLocale ...$n2nLocales): string {
		if (empty($n2nLocales)) {
			$n2nLocales[] = $this->n2nContext->getN2nLocale();
		}
		
		if (!is_array($ns) && $this->dbtextCollections[$ns]) {
			return $this->dbtextCollections[$ns]->t($key, $args, ...$n2nLocales);
		}
		
		return $this->tc($ns, ...$n2nLocales)->t($key, $args, ...$n2nLocales);
	}
public function t($ns, string $key, array $args = null, N2nLocale ...$n2nLocales): string {
		if (empty($n2nLocales)) {
			$n2nLocales[] = $this->n2nContext->getN2nLocale();
		}
		
		if (!is_array($ns) && $this->dbtextCollections[$ns]) {
			return $this->dbtextCollections[$ns]->t($key, $args, ...$n2nLocales);
		}
		
		return $this->tc($ns, ...$n2nLocales)->t($key, $args, ...$n2nLocales);
	}
Uses {@see DbtextCollection dbtextCollections} to translate a textblock.

@see DbtextCollection::t()
@param string|string[] $ns
@param string $key
@param array|null $args
@param N2nLocale[] ...$n2nLocales
@return string