import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
//#region src/components/translation/utils.ts
const locales = {
	en: "",
	"zh-CN": "",
	"zh-HK": "",
	"ja": "",
	"pt": ""
};
const checkIfAllValuesAreEqual = (obj) => {
	const valuesArray = Object.values(obj);
	return valuesArray.every((value) => value === valuesArray[0]);
};
const createTranslationText = (text, isAll = true) => {
	let primary = localStorage.getItem("shop_primary_locale") || "en";
	let _locales = _objectSpread2({}, locales);
	if (text !== "" && text !== void 0) if (isAll) for (let key in _locales) _locales[key] = text;
	else _locales[primary] = text;
	return _locales;
};
//#endregion
export { checkIfAllValuesAreEqual, createTranslationText, locales };
