Automattic\WooCommerce\Internal\Admin

Translations::get_combined_translation_filename()privateWC 1.0

Generate a filename to cache translations from JS chunks.

Method of the class: Translations{}

No Hooks.

Return

String. Filename.

Usage

// private - for code of main (parent) class only
$result = $this->get_combined_translation_filename( $domain, $locale );
$domain(string) (required)
Text domain.
$locale(string) (required)
Locale being retrieved.

Translations::get_combined_translation_filename() code WC 7.1.1

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

	return $filename;
}