Automattic\WooCommerce\Internal\Admin
Translations::get_combined_translation_filename
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() Translations::get combined translation filename WC 10.3.4
private function get_combined_translation_filename( $domain, $locale ) {
$filename = implode( '-', array( $domain, $locale, WC_ADMIN_APP ) ) . '.json';
return $filename;
}