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 9.5.1
private function get_combined_translation_filename( $domain, $locale ) { $filename = implode( '-', array( $domain, $locale, WC_ADMIN_APP ) ) . '.json'; return $filename; }