private function getFileNameFor(string $name, string $sourceLanguage, string $targetLanguage): string
    {
        if ('' !== $this->subDirectoryMask) {
            return $this->rootDir . DIRECTORY_SEPARATOR
                . strtr($this->subDirectoryMask, ['{source}' => $sourceLanguage, '{target}' => $targetLanguage])
                . DIRECTORY_SEPARATOR . $name . '.xlf';
        }

        return $this->rootDir . DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR . $name . '.xlf';
    }