Automattic\WooCommerce\Internal\Admin
Translations::get_combined_translation_filename
Generate a filename to cache translations from JS chunks.
Method of the class: Translations{}
No Hooks.
Returns
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() Translations::get combined translation filename code WC 10.4.3
private function get_combined_translation_filename( $domain, $locale ) {
$filename = implode( '-', array( $domain, $locale, WC_ADMIN_APP ) ) . '.json';
return $filename;
}