HEX
Server: nginx/1.26.1
System: Linux main-vm 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: root (0)
PHP: 8.2.19
Disabled: NONE
Upload Files
File: /var/www/pausfood/wp-content/plugins/currency-switcher-woocommerce/includes/admin/js/parameters.js
/*global wcSettings, wpw_currency_switcher*/

const getLabel = () => {
	/** @namespace wpw_currency_switcher.i18n.Currency */
	return wpw_currency_switcher.i18n.Currency;
};

const getStoreCurrency = () => {
	return wcSettings.currency.code;
};

const getCurrencies = () => {
	/** @namespace wpw_currency_switcher.currencies */
	return wpw_currency_switcher.currencies;
};

/**
 * List of wc-analytics pages where currency is used.
 *
 * @return {string[]} The list of pages.
 */
const getPages = () => {
	return [
		"orders",
		"revenue",
		"products",
		"categories",
		"coupons",
		"taxes",
	];
};

module.exports = {
	getLabel,
	getCurrencies,
	getPages,
	getStoreCurrency
};