Automattic\WooCommerce\Internal\Admin

Translations::get_combined_translation_filename()privateWC 1.0

Generate a filename to cache translations from JS chunks.

Метод класса: Translations{}

Хуков нет.

Возвращает

Строку. Filename.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_combined_translation_filename( $domain, $locale );
$domain(строка) (обязательный)
Text domain.
$locale(строка) (обязательный)
Locale being retrieved.

Код Translations::get_combined_translation_filename() WC 8.7.0

private function get_combined_translation_filename( $domain, $locale ) {
	$filename = implode( '-', array( $domain, $locale, WC_ADMIN_APP ) ) . '.json';

	return $filename;
}