Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
home
/
ophq1335
/
www
/
wp-content
/
themes
/
Divi
/
core
/
code-snippets
/
app
/
lib
/
/home/ophq1335/www/wp-content/themes/Divi/core/code-snippets/app/lib/i18n.js
// External dependencies. import { get } from 'lodash'; const i18n = (context, key, ...args) => { const value = get(context, key, ''); if ('production' !== process.env.NODE_ENV && '' === value) { console.error('Failed to find i18n string:', key); } if (args.length > 0) { const sprintf = get(window, 'wp.i18n.sprintf'); return sprintf(value, ...args); } return value; }; export default (path, key, ...args) => i18n(window.et_code_snippets_data.i18n, [path, key], ...args);