Plugin Directory

Changeset 3460537


Ignore:
Timestamp:
02/13/2026 07:10:52 AM (6 weeks ago)
Author:
wijnbergdevelopments
Message:
  • Added new option for setting the tax switch aria-label
  • Added new filter: wdevs_tax_switch_skip_next_price_wrap to allow third-parties to skip the next price wrapping
Location:
tax-switch-for-woocommerce
Files:
110 added
31 edited

Legend:

Unmodified
Added
Removed
  • tax-switch-for-woocommerce/trunk/README.txt

    r3455509 r3460537  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 1.6.8
     6Stable tag: 1.6.9
    77Requires PHP: 7.2
    88License: GPL-2.0+
     
    100100* `switch-label-excl`: Sets the text for the "excluding VAT" label.
    101101    - Default: Uses the text set in the plugin settings or "Excl. VAT" if not set.
     102* `switch-aria-label`: Sets the aria label of the switch.
     103    - Default: Uses the text set in the plugin settings or "Switch between prices including and excluding VAT" if not set.
    102104
    103105Example with custom attributes:
    104106
    105 `[wdevs_tax_switch class-name="is-style-inline" switch-type="switch" switch-color="#ffffff" switch-color-checked="#000000" switch-background-color="#000000" switch-background-color-checked="#4CAF50" switch-text-color="#FF0000" switch-label-incl="Incl. tax" switch-label-excl="Excl. tax"]`
     107`[wdevs_tax_switch class-name="is-style-inline" switch-type="switch" switch-color="#ffffff" switch-color-checked="#000000" switch-background-color="#000000" switch-background-color-checked="#4CAF50" switch-text-color="#FF0000" switch-label-incl="Incl. tax" switch-label-excl="Excl. tax" switch-aria-label="Switch between prices including and excluding VAT"]`
    106108
    107109
     
    207209* YITH WooCommerce Role Based Prices
    208210* WooCommerce Dynamic Pricing and Discount Rules
     211* Price Based on Country for WooCommerce
    209212
    210213If you encounter any compatibility issues with other plugins or themes, please let us know. Your feedback helps us improve the plugin and extend compatibility to more third-party solutions.
     
    243246
    244247== Changelog ==
     248= 1.6.9 =
     249* Added new option for setting the tax switch aria-label
     250* Added new filter: `wdevs_tax_switch_skip_next_price_wrap` to allow third-parties to skip the next price wrapping
     251
    245252= 1.6.8 =
    246253* Added compatibility for Elementor Popup
  • tax-switch-for-woocommerce/trunk/build/label/block.json

    r3455509 r3460537  
    33  "apiVersion": 3,
    44  "name": "wdevs/tax-switch-label",
    5   "version": "1.6.8",
     5  "version": "1.6.9",
    66  "title": "Tax Switch text label",
    77  "category": "woocommerce",
  • tax-switch-for-woocommerce/trunk/build/label/index.asset.php

    r3410740 r3460537  
    1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '323be06952723dc3fc25');
     1<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'a4955e8c23b9c77d2369');
  • tax-switch-for-woocommerce/trunk/build/label/index.js

    r3410740 r3460537  
    1 (()=>{"use strict";var e,o={87:e=>{e.exports=window.wp.element},143:e=>{e.exports=window.wp.data},487:(e,o,l)=>{const t=window.wp.blocks,r=window.wp.i18n,a=window.wp.blockEditor,n=window.wp.components;var i=l(67),s=l(790);const c=JSON.parse('{"UU":"wdevs/tax-switch-label"}');(0,t.registerBlockType)(c.UU,{edit:function({attributes:e,setAttributes:o}){const{labelTextColor:l,labelTextColorChecked:t,labelTextIncl:c,labelTextExcl:w}=e,{originalTaxDisplay:x}=window.wtsEditorObject||{originalTaxDisplay:"incl"};return(0,s.jsxs)("div",{...(0,a.useBlockProps)(),children:[(0,s.jsxs)(a.InspectorControls,{children:[(0,s.jsxs)(n.PanelBody,{title:(0,r.__)("Labels","tax-switch-for-woocommerce"),initialOpen:!0,children:[(0,s.jsx)(n.TextControl,{label:(0,r.__)("Including VAT label","tax-switch-for-woocommerce"),value:c,onChange:e=>o({labelTextIncl:e})}),(0,s.jsx)(n.TextControl,{label:(0,r.__)("Excluding VAT label","tax-switch-for-woocommerce"),value:w,onChange:e=>o({labelTextExcl:e})})]}),(0,s.jsx)(a.PanelColorSettings,{title:(0,r.__)("Label colors","tax-switch-for-woocommerce"),initialOpen:!0,colorSettings:[{value:l,onChange:e=>o({labelTextColor:e}),label:(0,r.__)("Label excluding VAT color","tax-switch-for-woocommerce")},{value:t,onChange:e=>o({labelTextColorChecked:e}),label:(0,r.__)("Label including VAT color","tax-switch-for-woocommerce")}]})]}),(0,s.jsx)(i.A,{...e,originalTaxDisplay:x})]})},save:function(){return(0,s.jsx)("div",{...a.useBlockProps.save()})}})},790:e=>{e.exports=window.ReactJSXRuntime}},l={};function t(e){var r=l[e];if(void 0!==r)return r.exports;var a=l[e]={exports:{}};return o[e](a,a.exports,t),a.exports}t.m=o,e=[],t.O=(o,l,r,a)=>{if(!l){var n=1/0;for(w=0;w<e.length;w++){for(var[l,r,a]=e[w],i=!0,s=0;s<l.length;s++)(!1&a||n>=a)&&Object.keys(t.O).every(e=>t.O[e](l[s]))?l.splice(s--,1):(i=!1,a<n&&(n=a));if(i){e.splice(w--,1);var c=r();void 0!==c&&(o=c)}}return o}a=a||0;for(var w=e.length;w>0&&e[w-1][2]>a;w--)e[w]=e[w-1];e[w]=[l,r,a]},t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var l in o)t.o(o,l)&&!t.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:o[l]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.j=38,(()=>{var e={38:0,722:0};t.O.j=o=>0===e[o];var o=(o,l)=>{var r,a,[n,i,s]=l,c=0;if(n.some(o=>0!==e[o])){for(r in i)t.o(i,r)&&(t.m[r]=i[r]);if(s)var w=s(t)}for(o&&o(l);c<n.length;c++)a=n[c],t.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return t.O(w)},l=globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var r=t.O(void 0,[320,722],()=>t(487));r=t.O(r)})();
     1(()=>{"use strict";var e,o={87:e=>{e.exports=window.wp.element},143:e=>{e.exports=window.wp.data},723:e=>{e.exports=window.wp.i18n},790:e=>{e.exports=window.ReactJSXRuntime},840:(e,o,l)=>{const t=window.wp.blocks;var r=l(723);const a=window.wp.blockEditor,n=window.wp.components;var i=l(67),s=l(790);const c=JSON.parse('{"UU":"wdevs/tax-switch-label"}');(0,t.registerBlockType)(c.UU,{edit:function({attributes:e,setAttributes:o}){const{labelTextColor:l,labelTextColorChecked:t,labelTextIncl:c,labelTextExcl:w}=e,{originalTaxDisplay:x}=window.wtsEditorObject||{originalTaxDisplay:"incl"};return(0,s.jsxs)("div",{...(0,a.useBlockProps)(),children:[(0,s.jsxs)(a.InspectorControls,{children:[(0,s.jsxs)(n.PanelBody,{title:(0,r.__)("Labels","tax-switch-for-woocommerce"),initialOpen:!0,children:[(0,s.jsx)(n.TextControl,{label:(0,r.__)("Including VAT label","tax-switch-for-woocommerce"),value:c,onChange:e=>o({labelTextIncl:e})}),(0,s.jsx)(n.TextControl,{label:(0,r.__)("Excluding VAT label","tax-switch-for-woocommerce"),value:w,onChange:e=>o({labelTextExcl:e})})]}),(0,s.jsx)(a.PanelColorSettings,{title:(0,r.__)("Label colors","tax-switch-for-woocommerce"),initialOpen:!0,colorSettings:[{value:l,onChange:e=>o({labelTextColor:e}),label:(0,r.__)("Label excluding VAT color","tax-switch-for-woocommerce")},{value:t,onChange:e=>o({labelTextColorChecked:e}),label:(0,r.__)("Label including VAT color","tax-switch-for-woocommerce")}]})]}),(0,s.jsx)(i.A,{...e,originalTaxDisplay:x})]})},save:function(){return(0,s.jsx)("div",{...a.useBlockProps.save()})}})}},l={};function t(e){var r=l[e];if(void 0!==r)return r.exports;var a=l[e]={exports:{}};return o[e](a,a.exports,t),a.exports}t.m=o,e=[],t.O=(o,l,r,a)=>{if(!l){var n=1/0;for(w=0;w<e.length;w++){for(var[l,r,a]=e[w],i=!0,s=0;s<l.length;s++)(!1&a||n>=a)&&Object.keys(t.O).every(e=>t.O[e](l[s]))?l.splice(s--,1):(i=!1,a<n&&(n=a));if(i){e.splice(w--,1);var c=r();void 0!==c&&(o=c)}}return o}a=a||0;for(var w=e.length;w>0&&e[w-1][2]>a;w--)e[w]=e[w-1];e[w]=[l,r,a]},t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var l in o)t.o(o,l)&&!t.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:o[l]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.j=38,(()=>{var e={38:0,722:0};t.O.j=o=>0===e[o];var o=(o,l)=>{var r,a,[n,i,s]=l,c=0;if(n.some(o=>0!==e[o])){for(r in i)t.o(i,r)&&(t.m[r]=i[r]);if(s)var w=s(t)}for(o&&o(l);c<n.length;c++)a=n[c],t.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return t.O(w)},l=globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[];l.forEach(o.bind(null,0)),l.push=o.bind(null,l.push.bind(l))})();var r=t.O(void 0,[320,722],()=>t(840));r=t.O(r)})();
  • tax-switch-for-woocommerce/trunk/build/shared/shared.asset.php

    r3447052 r3460537  
    1 <?php return array('dependencies' => array(), 'version' => '6e41829bb611003680aa');
     1<?php return array('dependencies' => array(), 'version' => '67d6e6021b66ee1ffc4b');
  • tax-switch-for-woocommerce/trunk/build/shared/shared.js

    r3447052 r3460537  
    1 "use strict";(globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[]).push([[320],{67:(t,e,s)=>{s.d(e,{A:()=>o});var i=s(87),n=s(143),c=s(159),a=s(75),l=s(790);class r extends i.Component{constructor(t){super(t);const{readOnly:e,isSwitched:s}=this.getInitialState(t);this.state={readOnly:e,isSwitched:s},this.unsubscribe=(0,n.subscribe)(()=>{const t=(0,a.ir)();this.state.isSwitched!==t&&this.setState({isSwitched:t})})}getInitialState(t){const e=c.A.parseBooleanValue(t.readOnly),s=t.originalTaxDisplay||"incl";let i;return i=e?!("incl"===s):(0,a.ir)(),{readOnly:e,isSwitched:i}}componentWillUnmount(){this.unsubscribe&&this.unsubscribe()}displayIncludingVat(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return c.A.displayIncludingVat(t,e)}getCurrentLabel(){const{labelTextIncl:t,labelTextExcl:e}=this.props;return this.displayIncludingVat()?t||"":e||""}render(){const{labelTextColor:t,labelTextColorChecked:e,labelTextIncl:s,labelTextExcl:i}=this.props;if(!s&&!i)return"";const n=this.displayIncludingVat();return(0,l.jsx)("span",{className:"wdevs-tax-switch-labels "+(n?"wts-price-incl":"wts-price-excl"),style:{"--wts-text-color":t,"--wts-text-color-checked":e},children:(0,l.jsx)("span",{className:"wdevs-tax-switch-label-text",children:this.getCurrentLabel()})})}}const o=/^(38|733)$/.test(s.j)?r:null},75:(t,e,s)=>{s.d(e,{D_:()=>w,WJ:()=>u,ir:()=>d,rj:()=>h,z6:()=>p});var i=s(143);const n="wdevs_tax_switch_is_switched",c="wdevs-tax-switch/store",a="SET_IS_SWITCHED",l="SET_IS_DISABLED",r={setIsSwitched:t=>({type:a,value:t}),saveIsSwitched:t=>(localStorage.setItem(n,JSON.stringify(t)),{type:a,value:t}),setIsDisabled:t=>({type:l,value:t})};let o=(0,i.select)(c);function d(){return(0,i.select)(c).getIsSwitched()}function h(t){return(0,i.dispatch)(c).saveIsSwitched(t)}function u(t){return(0,i.dispatch)(c).setIsSwitched(t)}function w(){return(0,i.select)(c).getIsDisabled()}function p(t){return(0,i.dispatch)(c).setIsDisabled(t)}void 0===o&&(o=(0,i.createReduxStore)(c,{reducer:(t=(()=>{const t=localStorage.getItem(n);return{isSwitched:!!t&&JSON.parse(t),isDisabled:!1}})(),e)=>{switch(e.type){case a:return{...t,isSwitched:e.value};case l:return{...t,isDisabled:e.value};default:return t}},actions:r,selectors:{getIsSwitched:t=>t.isSwitched,getIsDisabled:t=>t.isDisabled}}),(0,i.register)(o))},159:(t,e,s)=>{s.d(e,{A:()=>n});var i=s(75);const n=285!=s.j?class{static togglePriceClasses(t,e){const s=this.displayIncludingVat(t,e);document.querySelectorAll(".wts-price-wrapper").forEach(t=>{const e=t.querySelector(":scope > .wts-price-incl"),i=t.querySelector(":scope > .wts-price-excl");s?(e.classList.remove("wts-inactive"),e.classList.add("wts-active"),i.classList.remove("wts-active"),i.classList.add("wts-inactive")):(e.classList.remove("wts-active"),e.classList.add("wts-inactive"),i.classList.remove("wts-inactive"),i.classList.add("wts-active"))})}static displayIncludingVat(t,e){return null==e&&(e=(0,i.ir)()),"incl"===t&&!e||"excl"===t&&e}static parseBooleanValue(t){return!!t&&JSON.parse(t)}static setPriceClasses(t){return this.togglePriceClasses(t,(0,i.ir)())}static calculateAlternatePrice(t,e,s){if(!t||t<=0||!s)return t;const i=1+s/100;let n;return n="incl"===e?t/i:t*i,Number(n.toFixed(2))}static calculateOriginalPrice(t,e,s){let i="excl";return"excl"===e&&(i="incl"),this.calculateAlternatePrice(t,i,s)}}:null},538:(t,e,s)=>{function i(){return!(window.wtsViewObject||{checkPriceElements:!1}).checkPriceElements||document.querySelectorAll(".wts-price-wrapper").length>0}function n(t){"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t,{once:!0})}s.d(e,{I:()=>i,P:()=>n})},651:(t,e,s)=>{s.d(e,{A:()=>i});const i=/^(202|285|38|657|733|793|894)$/.test(s.j)?null:class{constructor(t){this.originalTaxDisplay=t}build(t,e,s,i=null){const n=this.getPricesBasedOnTaxDisplay(e,s),c=n.including,a=n.excluding;function l(t){return t?"wts-active":"wts-inactive"}function r(e,s){return`\n         <span class="wts-price-${s?"incl":"excl"} ${l(s===t)}">\n            ${e}\n         </span>\n      `}let o=`\n      <span class="wts-price-container">\n         <span class="wts-price-wrapper">\n            ${r(c,!0)}\n            ${r(a,!1)}\n         </span>\n   `;if(i){function d(e,s){return`\n            <span class="wts-price-${s?"incl":"excl"} ${l(s===t)}">\n               ${e}\n            </span>\n         `}o+=`\n         <span class="wts-price-wrapper">\n            ${d(i.including,!0)}\n            ${d(i.excluding,!1)}\n         </span>\n      `}return o+="</span>",o.trim()}getPricesBasedOnTaxDisplay(t,e){return"incl"===this.originalTaxDisplay?{including:t,excluding:e}:{including:e,excluding:t}}static getVatTexts(t=null){const e=document.createTextNode(" ").nodeValue;let s,i;if(window.wtsCompatibilityObject&&window.wtsCompatibilityObject.includingVatText&&window.wtsCompatibilityObject.excludingVatText)return s=window.wtsCompatibilityObject.includingVatText,i=window.wtsCompatibilityObject.excludingVatText,{including:e+`<span class="wts-vat-text">${s}</span>`,excluding:e+`<span class="wts-vat-text">${i}</span>`};if(t){const n=jQuery(t);if(s=n.find(".wts-price-incl .wts-vat-text").first(),i=n.find(".wts-price-excl .wts-vat-text").first(),s.length||i.length)return{including:s.length?e+s.clone().prop("outerHTML"):"",excluding:i.length?e+i.clone().prop("outerHTML"):""}}return s=jQuery(".wts-price-wrapper .wts-price-incl .wts-vat-text").first(),i=jQuery(".wts-price-wrapper .wts-price-excl .wts-vat-text").first(),{including:s.length?e+s.clone().prop("outerHTML"):"",excluding:i.length?e+i.clone().prop("outerHTML"):""}}static getVatTextElement(t,e,s){return`<span class="wts-price-wrapper">\n                    <span class="wts-price-incl ${t?"wts-active":"wts-inactive"}">\n                        ${e}\n                    </span>\n                    <span class="wts-price-excl ${t?"wts-inactive":"wts-active"}">\n                          ${s}\n                    </span>\n                </span>\n            `}}},983:(t,e,s)=>{s.d(e,{A:()=>o});var i=s(87),n=s(143),c=s(159),a=s(75),l=s(790);class r extends i.Component{constructor(t){super(t);const{readOnly:e,isSwitched:s}=this.getInitialState(t);this.state={readOnly:e,isSwitched:s,isDisabled:(0,a.D_)()},this.handleChange=this.handleChange.bind(this),this.unsubscribe=(0,n.subscribe)(()=>{const t=(0,a.ir)(),e=(0,a.D_)();this.state.isSwitched===t&&this.state.isDisabled===e||this.setState({isSwitched:t,isDisabled:e})})}getInitialState(t){const e=c.A.parseBooleanValue(t.readOnly),s=t.originalTaxDisplay||"incl";let i;return i=e?!("incl"===s):(0,a.ir)(),{readOnly:e,isSwitched:i}}componentWillUnmount(){this.unsubscribe&&this.unsubscribe()}handleChange(){const t=!this.state.isSwitched;this.setState({isSwitched:t},()=>{this.state.readOnly?(0,a.WJ)(t):((0,a.rj)(t),this.fireSwitchChangeEvent(t)),this.togglePriceClasses()})}displayIncludingVat(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return c.A.displayIncludingVat(t,e)}togglePriceClasses(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return c.A.togglePriceClasses(t,e)}getCurrentLabel(){const{switchLabelIncl:t,switchLabelExcl:e}=this.props;return this.displayIncludingVat()?t||"":e||""}fireSwitchChangeEvent(t){const e=new CustomEvent("wdevs-tax-switch-changed",{detail:{isSwitched:t,displayIncludingVat:this.displayIncludingVat()}});document.dispatchEvent(e)}renderButtons(){const{switchColor:t,switchColorChecked:e,switchBackgroundColor:s,switchBackgroundColorChecked:i,switchTextColor:n,switchLabelIncl:c,switchLabelExcl:a}=this.props,r=this.displayIncludingVat(),{isDisabled:o}=this.state;return(0,l.jsxs)("div",{className:"wdevs-tax-switch wdevs-tax-buttons",style:{"--wts-color":t,"--wts-color-checked":e,"--wts-bg-color":s,"--wts-bg-color-checked":i,"--wts-text-color":n},children:[(0,l.jsx)("button",{type:"button",className:"wdevs-tax-button "+(r?"wdevs-tax-button-active":""),disabled:o,onClick:()=>{r||this.handleChange()},children:c||"Incl. VAT"}),(0,l.jsx)("button",{type:"button",className:"wdevs-tax-button "+(r?"":"wdevs-tax-button-active"),disabled:o,onClick:()=>{r&&this.handleChange()},children:a||"Excl. VAT"})]})}renderToggleSwitch(){const{switchColor:t,switchColorChecked:e,switchBackgroundColor:s,switchBackgroundColorChecked:i,switchTextColor:n,switchLabelIncl:c,switchLabelExcl:a}=this.props,r=this.displayIncludingVat(),o=c||a,{isDisabled:d}=this.state;return(0,l.jsxs)("div",{className:"wdevs-tax-switch",style:{"--wts-color":t,"--wts-color-checked":e,"--wts-bg-color":s,"--wts-bg-color-checked":i,"--wts-text-color":n},children:[(0,l.jsxs)("label",{className:"wdevs-tax-switch-label",children:[(0,l.jsx)("input",{type:"checkbox",name:"wdevs-tax-switch-checkbox",onChange:this.handleChange,checked:r,disabled:d,className:"wdevs-tax-switch-checkbox"}),(0,l.jsx)("span",{className:"wdevs-tax-switch-slider"})]}),o&&(0,l.jsx)("span",{className:"wdevs-tax-switch-label-text",onClick:this.handleChange,role:"button",tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.handleChange())},children:this.getCurrentLabel()})]})}render(){const{switchType:t="switch"}=this.props;return"buttons"===t?this.renderButtons():this.renderToggleSwitch()}}const o=/^(202|793)$/.test(s.j)?r:null}}]);
     1"use strict";(globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[]).push([[320],{67:(t,e,s)=>{s.d(e,{A:()=>o});var i=s(87),c=s(143),n=s(159),a=s(75),l=s(790);class r extends i.Component{constructor(t){super(t);const{readOnly:e,isSwitched:s}=this.getInitialState(t);this.state={readOnly:e,isSwitched:s},this.unsubscribe=(0,c.subscribe)(()=>{const t=(0,a.ir)();this.state.isSwitched!==t&&this.setState({isSwitched:t})})}getInitialState(t){const e=n.A.parseBooleanValue(t.readOnly),s=t.originalTaxDisplay||"incl";let i;return i=e?!("incl"===s):(0,a.ir)(),{readOnly:e,isSwitched:i}}componentWillUnmount(){this.unsubscribe&&this.unsubscribe()}displayIncludingVat(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return n.A.displayIncludingVat(t,e)}getCurrentLabel(){const{labelTextIncl:t,labelTextExcl:e}=this.props;return this.displayIncludingVat()?t||"":e||""}render(){const{labelTextColor:t,labelTextColorChecked:e,labelTextIncl:s,labelTextExcl:i}=this.props;if(!s&&!i)return"";const c=this.displayIncludingVat();return(0,l.jsx)("span",{className:"wdevs-tax-switch-labels "+(c?"wts-price-incl":"wts-price-excl"),style:{"--wts-text-color":t,"--wts-text-color-checked":e},children:(0,l.jsx)("span",{className:"wdevs-tax-switch-label-text",children:this.getCurrentLabel()})})}}const o=/^(38|733)$/.test(s.j)?r:null},75:(t,e,s)=>{s.d(e,{D_:()=>u,WJ:()=>w,ir:()=>d,rj:()=>h,z6:()=>p});var i=s(143);const c="wdevs_tax_switch_is_switched",n="wdevs-tax-switch/store",a="SET_IS_SWITCHED",l="SET_IS_DISABLED",r={setIsSwitched:t=>({type:a,value:t}),saveIsSwitched:t=>(localStorage.setItem(c,JSON.stringify(t)),{type:a,value:t}),setIsDisabled:t=>({type:l,value:t})};let o=(0,i.select)(n);function d(){return(0,i.select)(n).getIsSwitched()}function h(t){return(0,i.dispatch)(n).saveIsSwitched(t)}function w(t){return(0,i.dispatch)(n).setIsSwitched(t)}function u(){return(0,i.select)(n).getIsDisabled()}function p(t){return(0,i.dispatch)(n).setIsDisabled(t)}void 0===o&&(o=(0,i.createReduxStore)(n,{reducer:(t=(()=>{const t=localStorage.getItem(c);return{isSwitched:!!t&&JSON.parse(t),isDisabled:!1}})(),e)=>{switch(e.type){case a:return{...t,isSwitched:e.value};case l:return{...t,isDisabled:e.value};default:return t}},actions:r,selectors:{getIsSwitched:t=>t.isSwitched,getIsDisabled:t=>t.isDisabled}}),(0,i.register)(o))},159:(t,e,s)=>{s.d(e,{A:()=>c});var i=s(75);const c=285!=s.j?class{static togglePriceClasses(t,e){const s=this.displayIncludingVat(t,e);document.querySelectorAll(".wts-price-wrapper").forEach(t=>{const e=t.querySelector(":scope > .wts-price-incl"),i=t.querySelector(":scope > .wts-price-excl");s?(e.classList.remove("wts-inactive"),e.classList.add("wts-active"),i.classList.remove("wts-active"),i.classList.add("wts-inactive")):(e.classList.remove("wts-active"),e.classList.add("wts-inactive"),i.classList.remove("wts-inactive"),i.classList.add("wts-active"))})}static displayIncludingVat(t,e){return null==e&&(e=(0,i.ir)()),"incl"===t&&!e||"excl"===t&&e}static parseBooleanValue(t){return!!t&&JSON.parse(t)}static setPriceClasses(t){return this.togglePriceClasses(t,(0,i.ir)())}static calculateAlternatePrice(t,e,s){if(!t||t<=0||!s)return t;const i=1+s/100;let c;return c="incl"===e?t/i:t*i,Number(c.toFixed(2))}static calculateOriginalPrice(t,e,s){let i="excl";return"excl"===e&&(i="incl"),this.calculateAlternatePrice(t,i,s)}}:null},538:(t,e,s)=>{function i(){return!(window.wtsViewObject||{checkPriceElements:!1}).checkPriceElements||document.querySelectorAll(".wts-price-wrapper").length>0}function c(t){"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t,{once:!0})}s.d(e,{I:()=>i,P:()=>c})},651:(t,e,s)=>{s.d(e,{A:()=>i});const i=/^(202|285|38|657|733|793|894)$/.test(s.j)?null:class{constructor(t){this.originalTaxDisplay=t}build(t,e,s,i=null){const c=this.getPricesBasedOnTaxDisplay(e,s),n=c.including,a=c.excluding;function l(t){return t?"wts-active":"wts-inactive"}function r(e,s){return`\n         <span class="wts-price-${s?"incl":"excl"} ${l(s===t)}">\n            ${e}\n         </span>\n      `}let o=`\n      <span class="wts-price-container">\n         <span class="wts-price-wrapper">\n            ${r(n,!0)}\n            ${r(a,!1)}\n         </span>\n   `;if(i){function d(e,s){return`\n            <span class="wts-price-${s?"incl":"excl"} ${l(s===t)}">\n               ${e}\n            </span>\n         `}o+=`\n         <span class="wts-price-wrapper">\n            ${d(i.including,!0)}\n            ${d(i.excluding,!1)}\n         </span>\n      `}return o+="</span>",o.trim()}getPricesBasedOnTaxDisplay(t,e){return"incl"===this.originalTaxDisplay?{including:t,excluding:e}:{including:e,excluding:t}}static getVatTexts(t=null){const e=document.createTextNode(" ").nodeValue;let s,i;if(window.wtsCompatibilityObject&&window.wtsCompatibilityObject.includingVatText&&window.wtsCompatibilityObject.excludingVatText)return s=window.wtsCompatibilityObject.includingVatText,i=window.wtsCompatibilityObject.excludingVatText,{including:e+`<span class="wts-vat-text">${s}</span>`,excluding:e+`<span class="wts-vat-text">${i}</span>`};if(t){const c=jQuery(t);if(s=c.find(".wts-price-incl .wts-vat-text").first(),i=c.find(".wts-price-excl .wts-vat-text").first(),s.length||i.length)return{including:s.length?e+s.clone().prop("outerHTML"):"",excluding:i.length?e+i.clone().prop("outerHTML"):""}}return s=jQuery(".wts-price-wrapper .wts-price-incl .wts-vat-text").first(),i=jQuery(".wts-price-wrapper .wts-price-excl .wts-vat-text").first(),{including:s.length?e+s.clone().prop("outerHTML"):"",excluding:i.length?e+i.clone().prop("outerHTML"):""}}static getVatTextElement(t,e,s){return`<span class="wts-price-wrapper">\n                    <span class="wts-price-incl ${t?"wts-active":"wts-inactive"}">\n                        ${e}\n                    </span>\n                    <span class="wts-price-excl ${t?"wts-inactive":"wts-active"}">\n                          ${s}\n                    </span>\n                </span>\n            `}}},983:(t,e,s)=>{s.d(e,{A:()=>d});var i=s(87),c=s(143),n=s(723),a=s(159),l=s(75),r=s(790);class o extends i.Component{constructor(t){super(t);const{readOnly:e,isSwitched:s}=this.getInitialState(t);this.state={readOnly:e,isSwitched:s,isDisabled:(0,l.D_)()},this.handleChange=this.handleChange.bind(this),this.unsubscribe=(0,c.subscribe)(()=>{const t=(0,l.ir)(),e=(0,l.D_)();this.state.isSwitched===t&&this.state.isDisabled===e||this.setState({isSwitched:t,isDisabled:e})})}getInitialState(t){const e=a.A.parseBooleanValue(t.readOnly),s=t.originalTaxDisplay||"incl";let i;return i=e?!("incl"===s):(0,l.ir)(),{readOnly:e,isSwitched:i}}componentWillUnmount(){this.unsubscribe&&this.unsubscribe()}handleChange(){const t=!this.state.isSwitched;this.setState({isSwitched:t},()=>{this.state.readOnly?(0,l.WJ)(t):((0,l.rj)(t),this.fireSwitchChangeEvent(t)),this.togglePriceClasses()})}displayIncludingVat(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return a.A.displayIncludingVat(t,e)}togglePriceClasses(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return a.A.togglePriceClasses(t,e)}getToggleSwitchAriaLabel(){const{switchAriaLabel:t,switchLabelIncl:e,switchLabelExcl:s}=this.props;return t||(e&&s?e+" / "+s:(0,n.__)("Switch between prices including and excluding VAT","tax-switch-for-woocommerce"))}getCurrentLabel(){const{switchLabelIncl:t,switchLabelExcl:e}=this.props;return this.displayIncludingVat()?t||"":e||""}fireSwitchChangeEvent(t){const e=new CustomEvent("wdevs-tax-switch-changed",{detail:{isSwitched:t,displayIncludingVat:this.displayIncludingVat()}});document.dispatchEvent(e)}renderButtons(){const{switchColor:t,switchColorChecked:e,switchBackgroundColor:s,switchBackgroundColorChecked:i,switchTextColor:c,switchLabelIncl:a,switchLabelExcl:l}=this.props,o=this.displayIncludingVat(),{isDisabled:d}=this.state;return(0,r.jsxs)("div",{className:"wdevs-tax-switch wdevs-tax-buttons",style:{"--wts-color":t,"--wts-color-checked":e,"--wts-bg-color":s,"--wts-bg-color-checked":i,"--wts-text-color":c},children:[(0,r.jsx)("button",{type:"button",className:"wdevs-tax-button "+(o?"wdevs-tax-button-active":""),disabled:d,onClick:()=>{o||this.handleChange()},children:a||(0,n.__)("Incl. VAT","tax-switch-for-woocommerce")}),(0,r.jsx)("button",{type:"button",className:"wdevs-tax-button "+(o?"":"wdevs-tax-button-active"),disabled:d,onClick:()=>{o&&this.handleChange()},children:l||(0,n.__)("Excl. VAT","tax-switch-for-woocommerce")})]})}renderToggleSwitch(){const{switchColor:t,switchColorChecked:e,switchBackgroundColor:s,switchBackgroundColorChecked:i,switchTextColor:c,switchLabelIncl:n,switchLabelExcl:a}=this.props,l=this.displayIncludingVat(),o=n||a,{isDisabled:d}=this.state;return(0,r.jsxs)("div",{className:"wdevs-tax-switch",style:{"--wts-color":t,"--wts-color-checked":e,"--wts-bg-color":s,"--wts-bg-color-checked":i,"--wts-text-color":c},children:[(0,r.jsxs)("label",{className:"wdevs-tax-switch-label",children:[(0,r.jsx)("input",{type:"checkbox",name:"wdevs-tax-switch-checkbox",onChange:this.handleChange,checked:l,disabled:d,className:"wdevs-tax-switch-checkbox","aria-label":this.getToggleSwitchAriaLabel()}),(0,r.jsx)("span",{className:"wdevs-tax-switch-slider"})]}),o&&(0,r.jsx)("span",{className:"wdevs-tax-switch-label-text",onClick:this.handleChange,role:"button",tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.handleChange())},children:this.getCurrentLabel()})]})}render(){const{switchType:t="switch"}=this.props;return"buttons"===t?this.renderButtons():this.renderToggleSwitch()}}const d=/^(202|793)$/.test(s.j)?o:null}}]);
  • tax-switch-for-woocommerce/trunk/build/switch/block.json

    r3455509 r3460537  
    33  "apiVersion": 3,
    44  "name": "wdevs/tax-switch",
    5   "version": "1.6.8",
     5  "version": "1.6.9",
    66  "title": "Tax Switch for WooCommerce",
    77  "category": "woocommerce",
     
    3333      "type": "string"
    3434    },
     35    "switchAriaLabel": {
     36      "type": "string"
     37    },
    3538    "switchType": {
    3639      "type": "string",
  • tax-switch-for-woocommerce/trunk/build/switch/index.asset.php

    r3410740 r3460537  
    1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '0908ab0c3c66b5a44e54');
     1<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'a6556b91f7baff21f53d');
  • tax-switch-for-woocommerce/trunk/build/switch/index.js

    r3410740 r3460537  
    1 (()=>{"use strict";var o,e={87:o=>{o.exports=window.wp.element},143:o=>{o.exports=window.wp.data},295:(o,e,t)=>{const r=window.wp.blocks,c=window.wp.i18n,l=window.wp.blockEditor,i=window.wp.components;var a=t(983),n=t(790);const s=JSON.parse('{"UU":"wdevs/tax-switch"}');(0,r.registerBlockType)(s.UU,{edit:function({attributes:o,setAttributes:e}){const{switchType:t,switchColor:r,switchColorChecked:s,switchBackgroundColor:w,switchBackgroundColorChecked:h,switchTextColor:d,switchLabelIncl:u,switchLabelExcl:x}=o,{originalTaxDisplay:p}=window.wtsEditorObject||{originalTaxDisplay:"incl"};return(0,n.jsxs)("div",{...(0,l.useBlockProps)(),children:[(0,n.jsxs)(l.InspectorControls,{children:[(0,n.jsx)(i.PanelBody,{title:(0,c.__)("Display options","tax-switch-for-woocommerce"),initialOpen:!0,children:(0,n.jsx)(i.SelectControl,{label:(0,c.__)("Switch type","tax-switch-for-woocommerce"),value:t,options:[{label:(0,c.__)("Toggle switch","tax-switch-for-woocommerce"),value:"switch"},{label:(0,c.__)("Buttons","tax-switch-for-woocommerce"),value:"buttons"}],onChange:o=>e({switchType:o})})}),(0,n.jsx)(l.PanelColorSettings,{title:(0,c.__)("Switch colors","tax-switch-for-woocommerce"),initialOpen:!0,colorSettings:[{value:r,onChange:o=>e({switchColor:o}),label:(0,c.__)("Switch color","tax-switch-for-woocommerce")},{value:s,onChange:o=>e({switchColorChecked:o}),label:(0,c.__)("Switch color checked","tax-switch-for-woocommerce")},{value:w,onChange:o=>e({switchBackgroundColor:o}),label:(0,c.__)("Background color","tax-switch-for-woocommerce")},{value:h,onChange:o=>e({switchBackgroundColorChecked:o}),label:(0,c.__)("Background color checked","tax-switch-for-woocommerce")},{value:d,onChange:o=>e({switchTextColor:o}),label:(0,c.__)("Text color","tax-switch-for-woocommerce")}]}),(0,n.jsxs)(i.PanelBody,{title:(0,c.__)("Switch labels","tax-switch-for-woocommerce"),initialOpen:!0,children:[(0,n.jsx)(i.TextControl,{label:(0,c.__)("Including VAT label","tax-switch-for-woocommerce"),value:u,onChange:o=>e({switchLabelIncl:o})}),(0,n.jsx)(i.TextControl,{label:(0,c.__)("Excluding VAT label","tax-switch-for-woocommerce"),value:x,onChange:o=>e({switchLabelExcl:o})})]})]}),(0,n.jsx)(a.A,{...o,readOnly:!0,originalTaxDisplay:p})]})},save:function({attributes:o}){return(0,n.jsx)("div",{...l.useBlockProps.save()})}})},790:o=>{o.exports=window.ReactJSXRuntime}},t={};function r(o){var c=t[o];if(void 0!==c)return c.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,r),l.exports}r.m=e,o=[],r.O=(e,t,c,l)=>{if(!t){var i=1/0;for(w=0;w<o.length;w++){for(var[t,c,l]=o[w],a=!0,n=0;n<t.length;n++)(!1&l||i>=l)&&Object.keys(r.O).every(o=>r.O[o](t[n]))?t.splice(n--,1):(a=!1,l<i&&(i=l));if(a){o.splice(w--,1);var s=c();void 0!==s&&(e=s)}}return e}l=l||0;for(var w=o.length;w>0&&o[w-1][2]>l;w--)o[w]=o[w-1];o[w]=[t,c,l]},r.n=o=>{var e=o&&o.__esModule?()=>o.default:()=>o;return r.d(e,{a:e}),e},r.d=(o,e)=>{for(var t in e)r.o(e,t)&&!r.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:e[t]})},r.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),r.j=202,(()=>{var o={202:0,422:0};r.O.j=e=>0===o[e];var e=(e,t)=>{var c,l,[i,a,n]=t,s=0;if(i.some(e=>0!==o[e])){for(c in a)r.o(a,c)&&(r.m[c]=a[c]);if(n)var w=n(r)}for(e&&e(t);s<i.length;s++)l=i[s],r.o(o,l)&&o[l]&&o[l][0](),o[l]=0;return r.O(w)},t=globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))})();var c=r.O(void 0,[320,422],()=>r(295));c=r.O(c)})();
     1(()=>{"use strict";var o,e={87:o=>{o.exports=window.wp.element},143:o=>{o.exports=window.wp.data},584:(o,e,t)=>{const r=window.wp.blocks;var c=t(723);const l=window.wp.blockEditor,i=window.wp.components;var a=t(983),s=t(790);const n=JSON.parse('{"UU":"wdevs/tax-switch"}');(0,r.registerBlockType)(n.UU,{edit:function({attributes:o,setAttributes:e}){const{switchType:t,switchColor:r,switchColorChecked:n,switchBackgroundColor:w,switchBackgroundColorChecked:h,switchTextColor:d,switchLabelIncl:x,switchLabelExcl:u,switchAriaLabel:p}=o,{originalTaxDisplay:b}=window.wtsEditorObject||{originalTaxDisplay:"incl"};return(0,s.jsxs)("div",{...(0,l.useBlockProps)(),children:[(0,s.jsxs)(l.InspectorControls,{children:[(0,s.jsx)(i.PanelBody,{title:(0,c.__)("Display options","tax-switch-for-woocommerce"),initialOpen:!0,children:(0,s.jsx)(i.SelectControl,{label:(0,c.__)("Switch type","tax-switch-for-woocommerce"),value:t,options:[{label:(0,c.__)("Toggle switch","tax-switch-for-woocommerce"),value:"switch"},{label:(0,c.__)("Buttons","tax-switch-for-woocommerce"),value:"buttons"}],onChange:o=>e({switchType:o})})}),(0,s.jsx)(l.PanelColorSettings,{title:(0,c.__)("Switch colors","tax-switch-for-woocommerce"),initialOpen:!0,colorSettings:[{value:r,onChange:o=>e({switchColor:o}),label:(0,c.__)("Switch color","tax-switch-for-woocommerce")},{value:n,onChange:o=>e({switchColorChecked:o}),label:(0,c.__)("Switch color checked","tax-switch-for-woocommerce")},{value:w,onChange:o=>e({switchBackgroundColor:o}),label:(0,c.__)("Background color","tax-switch-for-woocommerce")},{value:h,onChange:o=>e({switchBackgroundColorChecked:o}),label:(0,c.__)("Background color checked","tax-switch-for-woocommerce")},{value:d,onChange:o=>e({switchTextColor:o}),label:(0,c.__)("Text color","tax-switch-for-woocommerce")}]}),(0,s.jsxs)(i.PanelBody,{title:(0,c.__)("Switch labels","tax-switch-for-woocommerce"),initialOpen:!0,children:[(0,s.jsx)(i.TextControl,{label:(0,c.__)("Including VAT label","tax-switch-for-woocommerce"),value:x,onChange:o=>e({switchLabelIncl:o})}),(0,s.jsx)(i.TextControl,{label:(0,c.__)("Excluding VAT label","tax-switch-for-woocommerce"),value:u,onChange:o=>e({switchLabelExcl:o})}),(0,s.jsx)(i.TextControl,{label:(0,c.__)("Switch aria label","tax-switch-for-woocommerce"),value:p,onChange:o=>e({switchAriaLabel:o})})]})]}),(0,s.jsx)(a.A,{...o,readOnly:!0,originalTaxDisplay:b})]})},save:function({attributes:o}){return(0,s.jsx)("div",{...l.useBlockProps.save()})}})},723:o=>{o.exports=window.wp.i18n},790:o=>{o.exports=window.ReactJSXRuntime}},t={};function r(o){var c=t[o];if(void 0!==c)return c.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,r),l.exports}r.m=e,o=[],r.O=(e,t,c,l)=>{if(!t){var i=1/0;for(w=0;w<o.length;w++){for(var[t,c,l]=o[w],a=!0,s=0;s<t.length;s++)(!1&l||i>=l)&&Object.keys(r.O).every(o=>r.O[o](t[s]))?t.splice(s--,1):(a=!1,l<i&&(i=l));if(a){o.splice(w--,1);var n=c();void 0!==n&&(e=n)}}return e}l=l||0;for(var w=o.length;w>0&&o[w-1][2]>l;w--)o[w]=o[w-1];o[w]=[t,c,l]},r.n=o=>{var e=o&&o.__esModule?()=>o.default:()=>o;return r.d(e,{a:e}),e},r.d=(o,e)=>{for(var t in e)r.o(e,t)&&!r.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:e[t]})},r.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),r.j=202,(()=>{var o={202:0,422:0};r.O.j=e=>0===o[e];var e=(e,t)=>{var c,l,[i,a,s]=t,n=0;if(i.some(e=>0!==o[e])){for(c in a)r.o(a,c)&&(r.m[c]=a[c]);if(s)var w=s(r)}for(e&&e(t);n<i.length;n++)l=i[n],r.o(o,l)&&o[l]&&o[l][0](),o[l]=0;return r.O(w)},t=globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))})();var c=r.O(void 0,[320,422],()=>r(584));c=r.O(c)})();
  • tax-switch-for-woocommerce/trunk/build/switch/view.asset.php

    r3455509 r3460537  
    1 <?php return array('dependencies' => array('jquery', 'react-jsx-runtime', 'wp-data', 'wp-element'), 'version' => 'eec777325cd6e2556e73');
     1<?php return array('dependencies' => array('jquery', 'react-jsx-runtime', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '55f1e2913936c240fcf8');
  • tax-switch-for-woocommerce/trunk/build/switch/view.js

    r3455509 r3460537  
    1 (()=>{"use strict";var e,t={87:e=>{e.exports=window.wp.element},143:e=>{e.exports=window.wp.data},617:(e,t,s)=>{var a=s(87),n=s(983),o=s(159);const i=window.jQuery;var r=s.n(i);const c=class{static initialize(e){this.registerWooCommerceEvents(e),this.registerDynamicContentEvents()}static registerWooCommerceEvents(e){r()(".variations_form").on("show_variation",function(){setTimeout(function(){o.A.setPriceClasses(e)},10)}),r()(".variations_form").on("reset_data",function(){setTimeout(function(){o.A.setPriceClasses(e)},10)}),r()(document).ajaxSuccess(function(t,s,a){a&&a.data&&"string"==typeof a.data&&["get_variable_product_bulk_table"].some(e=>a.data.includes(e))&&setTimeout(function(){o.A.setPriceClasses(e)},10)}),["jet-engine/listing-grid/after-load-more","facetwp-loaded","experimental-flatsome-pjax-request-done","flatsome-relay-request-done","flatsome-infiniteScroll-append","vpd_after_price_fadein","awsShowingResults","wc_fragments_loaded","pjax:success","fibosearch/show-suggestions","wc_price_based_country_after_ajax_geolocation"].forEach(function(t){r()(document).on(t,function(t,s){o.A.setPriceClasses(e)})})}static registerDynamicContentEvents(){["elementor/popup/show"].forEach(function(e){document.addEventListener(e,function(e){document.dispatchEvent(new CustomEvent("wdevs-tax-switch-appeared"))})})}};var l=s(538),d=s(790);let u=!1;const f=()=>{if(!(0,l.I)())return;const e=document.querySelectorAll(".wp-block-wdevs-tax-switch");if(e.length>0){const t=window.wtsViewObject||{originalTaxDisplay:"incl"};(e=>{o.A.setPriceClasses(e.originalTaxDisplay),u||(c.initialize(e.originalTaxDisplay),u=!0)})(t),e.forEach(e=>{e&&((e,t)=>{const s={...e.dataset,...t};(0,a.createRoot)(e).render((0,d.jsx)(a.Suspense,{fallback:(0,d.jsx)("div",{className:"wp-block-placeholder"}),children:(0,d.jsx)(n.A,{...s})}))})(e,t)})}};(0,l.P)(()=>{f()}),document.addEventListener("wdevs-tax-switch-appeared",()=>{f()})},790:e=>{e.exports=window.ReactJSXRuntime}},s={};function a(e){var n=s[e];if(void 0!==n)return n.exports;var o=s[e]={exports:{}};return t[e](o,o.exports,a),o.exports}a.m=t,e=[],a.O=(t,s,n,o)=>{if(!s){var i=1/0;for(d=0;d<e.length;d++){for(var[s,n,o]=e[d],r=!0,c=0;c<s.length;c++)(!1&o||i>=o)&&Object.keys(a.O).every(e=>a.O[e](s[c]))?s.splice(c--,1):(r=!1,o<i&&(i=o));if(r){e.splice(d--,1);var l=n();void 0!==l&&(t=l)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[s,n,o]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var s in t)a.o(t,s)&&!a.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.j=793,(()=>{var e={793:0};a.O.j=t=>0===e[t];var t=(t,s)=>{var n,o,[i,r,c]=s,l=0;if(i.some(t=>0!==e[t])){for(n in r)a.o(r,n)&&(a.m[n]=r[n]);if(c)var d=c(a)}for(t&&t(s);l<i.length;l++)o=i[l],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(d)},s=globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})();var n=a.O(void 0,[320],()=>a(617));n=a.O(n)})();
     1(()=>{"use strict";var e,t={87:e=>{e.exports=window.wp.element},143:e=>{e.exports=window.wp.data},617:(e,t,s)=>{var n=s(87),a=s(983),o=s(159);const i=window.jQuery;var r=s.n(i);const c=class{static initialize(e){this.registerWooCommerceEvents(e),this.registerDynamicContentEvents()}static registerWooCommerceEvents(e){r()(".variations_form").on("show_variation",function(){setTimeout(function(){o.A.setPriceClasses(e)},10)}),r()(".variations_form").on("reset_data",function(){setTimeout(function(){o.A.setPriceClasses(e)},10)}),r()(document).ajaxSuccess(function(t,s,n){n&&n.data&&"string"==typeof n.data&&["get_variable_product_bulk_table"].some(e=>n.data.includes(e))&&setTimeout(function(){o.A.setPriceClasses(e)},10)}),["jet-engine/listing-grid/after-load-more","facetwp-loaded","experimental-flatsome-pjax-request-done","flatsome-relay-request-done","flatsome-infiniteScroll-append","vpd_after_price_fadein","awsShowingResults","wc_fragments_loaded","pjax:success","fibosearch/show-suggestions","wc_price_based_country_after_ajax_geolocation"].forEach(function(t){r()(document).on(t,function(t,s){o.A.setPriceClasses(e)})})}static registerDynamicContentEvents(){["elementor/popup/show"].forEach(function(e){document.addEventListener(e,function(e){document.dispatchEvent(new CustomEvent("wdevs-tax-switch-appeared"))})})}};var l=s(538),d=s(790);let u=!1;const p=()=>{if(!(0,l.I)())return;const e=document.querySelectorAll(".wp-block-wdevs-tax-switch");if(e.length>0){const t=window.wtsViewObject||{originalTaxDisplay:"incl"};(e=>{o.A.setPriceClasses(e.originalTaxDisplay),u||(c.initialize(e.originalTaxDisplay),u=!0)})(t),e.forEach(e=>{e&&((e,t)=>{const s={...e.dataset,...t};(0,n.createRoot)(e).render((0,d.jsx)(n.Suspense,{fallback:(0,d.jsx)("div",{className:"wp-block-placeholder"}),children:(0,d.jsx)(a.A,{...s})}))})(e,t)})}};(0,l.P)(()=>{p()}),document.addEventListener("wdevs-tax-switch-appeared",()=>{p()})},723:e=>{e.exports=window.wp.i18n},790:e=>{e.exports=window.ReactJSXRuntime}},s={};function n(e){var a=s[e];if(void 0!==a)return a.exports;var o=s[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.m=t,e=[],n.O=(t,s,a,o)=>{if(!s){var i=1/0;for(d=0;d<e.length;d++){for(var[s,a,o]=e[d],r=!0,c=0;c<s.length;c++)(!1&o||i>=o)&&Object.keys(n.O).every(e=>n.O[e](s[c]))?s.splice(c--,1):(r=!1,o<i&&(i=o));if(r){e.splice(d--,1);var l=a();void 0!==l&&(t=l)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[s,a,o]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.j=793,(()=>{var e={793:0};n.O.j=t=>0===e[t];var t=(t,s)=>{var a,o,[i,r,c]=s,l=0;if(i.some(t=>0!==e[t])){for(a in r)n.o(r,a)&&(n.m[a]=r[a]);if(c)var d=c(n)}for(t&&t(s);l<i.length;l++)o=i[l],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(d)},s=globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})();var a=n.O(void 0,[320],()=>n(617));a=n.O(a)})();
  • tax-switch-for-woocommerce/trunk/includes/class-wdevs-tax-switch-block-switch.php

    r3410740 r3460537  
    100100            'switch-label-incl'               => '',
    101101            'switch-label-excl'               => '',
     102            'switch-aria-label'               => '',
    102103        ], $attributes );
    103104
  • tax-switch-for-woocommerce/trunk/includes/class-wdevs-tax-switch-block.php

    r3300428 r3460537  
    7373    protected function render_shortcode_html( array $attributes, string $container_class_name, string $content, string $element = 'div' ): string {
    7474        $wpml_active             = defined( 'ICL_SITEPRESS_VERSION' );
    75         $translatable_attributes = [ 'switch-label-incl', 'switch-label-excl' ];
     75        $translatable_attributes = [ 'switch-label-incl', 'switch-label-excl', 'switch-aria-label' ];
    7676        foreach ( $translatable_attributes as $label_key ) {
    7777            if ( ! empty( $attributes[ $label_key ] ) ) {
  • tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-en_US-43dcd1c557291b1a502cbd2ea4d36beb.json

    r3405724 r3460537  
    1 {"translation-revision-date": "2025-11-29 10:33+0100", "generator": "Poedit 3.7", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "en_US", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Including VAT label"], "Excluding VAT label": ["Excluding VAT label"], "Labels": ["Labels"], "Label colors": ["Label colors"], "Label excluding VAT color": ["Label excluding VAT color"], "Label including VAT color": ["Label including VAT color"]}}}
     1{"translation-revision-date": "2026-02-12 15:18+0100", "generator": "Poedit 3.8", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "en_US", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Including VAT label"], "Excluding VAT label": ["Excluding VAT label"], "Labels": ["Labels"], "Label colors": ["Label colors"], "Label excluding VAT color": ["Label excluding VAT color"], "Label including VAT color": ["Label including VAT color"]}}}
  • tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-en_US-a7d03486c29d1d1d1553c783663175ae.json

    r3405724 r3460537  
    1 {"translation-revision-date": "2025-11-29 10:33+0100", "generator": "Poedit 3.7", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "en_US", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Switch type"], "Toggle switch": ["Toggle switch"], "Buttons": ["Buttons"], "Switch color": ["Switch color"], "Switch color checked": ["Switch color checked"], "Background color": ["Background color"], "Background color checked": ["Background color checked"], "Text color": ["Text color"], "Including VAT label": ["Including VAT label"], "Excluding VAT label": ["Excluding VAT label"], "Display options": ["Display options"], "Switch colors": ["Switch colors"], "Switch labels": ["Switch labels"]}}}
     1{"translation-revision-date": "2026-02-12 15:18+0100", "generator": "Poedit 3.8", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "en_US", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Switch type"], "Toggle switch": ["Toggle switch"], "Buttons": ["Buttons"], "Switch color": ["Switch color"], "Switch color checked": ["Switch color checked"], "Background color": ["Background color"], "Background color checked": ["Background color checked"], "Text color": ["Text color"], "Including VAT label": ["Including VAT label"], "Excluding VAT label": ["Excluding VAT label"], "Display options": ["Display options"], "Switch colors": ["Switch colors"], "Switch labels": ["Switch labels"], "Switch aria label": ["Switch aria label"]}}}
  • tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-en_US.l10n.php

    r3405724 r3460537  
    11<?php
    22// generated by Poedit from tax-switch-for-woocommerce-en_US.po, do not edit directly
    3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'en_US','pot-creation-date'=>'2025-11-29 10:32+0100','po-revision-date'=>'2025-11-29 10:33+0100','translation-revision-date'=>'2025-11-29 10:33+0100','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.7','messages'=>['Settings'=>'Settings','Tax switch shortcode'=>'Tax switch shortcode','Configure shortcode'=>'Configure shortcode','Copy shortcode'=>'Copy shortcode','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Copy this shortcode and paste it where you want the tax switch to appear.','Close modal'=>'Close modal','Switch type'=>'Switch type','Toggle switch'=>'Toggle switch','Buttons'=>'Buttons','Switch style'=>'Switch style','Default style'=>'Default style','Inline style'=>'Inline style','Switch color'=>'Switch color','Default'=>'Default','Switch color checked'=>'Switch color checked','Background color'=>'Background color','Background color checked'=>'Background color checked','Text color'=>'Text color','Including VAT label'=>'Including VAT label','Incl. VAT'=>'Incl. VAT','Excluding VAT label'=>'Excluding VAT label','Excl. VAT'=>'Excl. VAT','CSS classes'=>'CSS classes','Options: is-style-default, is-style-inline or/and custom classes'=>'Options: is-style-default, is-style-inline or/and custom classes','Preview'=>'Preview','This is a preview. The actual style depends on your theme.'=>'This is a preview. De daadwerkelijke stijl hangt af van uw thema.','Generate shortcode'=>'Generate shortcode','Copied'=>'Copied','Labels'=>'Labels','Label colors'=>'Label colors','Label excluding VAT color'=>'Label excluding VAT color','Label including VAT color'=>'Label including VAT color','Display options'=>'Display options','Switch colors'=>'Switch colors','Switch labels'=>'Switch labels','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.','Tax switch'=>'Tax switch','Shortcode'=>'Shortcode','Documentation'=>'Documentation','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.','Tax switch settings'=>'Tax switch settings','Customize the tax switch settings.'=>'Customize the tax switch settings.','Including VAT text'=>'Including VAT text','Text to append to prices including VAT.'=>'Text to append to prices including VAT.','Excluding VAT text'=>'Excluding VAT text','Text to append to prices excluding VAT.'=>'Text to append to prices excluding VAT.','Where enabled'=>'Where enabled','On all pages'=>'On all pages','Only on WooCommerce pages'=>'Only on WooCommerce pages','Only on pages displaying prices'=>'Only on pages displaying prices','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce pages include: product archives/categories, single product pages and account pages.','On all pages where a Tax Switch block/shortcode is placed.'=>'On all pages where a Tax Switch block/shortcode is placed.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Hidden on pages that are not part of the store. Stops rendering completely.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>'Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.','Price switching in mini cart'=>'Price switching in mini cart','Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.'=>'Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.','By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).'=>'By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).','Shortcode settings'=>'Shortcode settings','Generate a tax switch shortcode.'=>'Generate a tax switch shortcode.','Tax Switch for WooCommerce'=>'Tax Switch for WooCommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']];
     3return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'en_US','pot-creation-date'=>'2026-02-12 15:18+0100','po-revision-date'=>'2026-02-12 15:18+0100','translation-revision-date'=>'2026-02-12 15:18+0100','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.8','messages'=>['Settings'=>'Settings','Tax switch shortcode'=>'Tax switch shortcode','Configure shortcode'=>'Configure shortcode','Copy shortcode'=>'Copy shortcode','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Copy this shortcode and paste it where you want the tax switch to appear.','Close modal'=>'Close modal','Switch type'=>'Switch type','Toggle switch'=>'Toggle switch','Buttons'=>'Buttons','Switch style'=>'Switch style','Default style'=>'Default style','Inline style'=>'Inline style','Flat pill'=>'Flat pill','Switch color'=>'Switch color','Default'=>'Default','Switch color checked'=>'Switch color checked','Background color'=>'Background color','Background color checked'=>'Background color checked','Text color'=>'Text color','Including VAT label'=>'Including VAT label','Incl. VAT'=>'Incl. VAT','Excluding VAT label'=>'Excluding VAT label','Excl. VAT'=>'Excl. VAT','CSS classes'=>'CSS classes','Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom classes'=>'Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom classes','Preview'=>'Preview','This is a preview. The actual style depends on your theme.'=>'This is a preview. De daadwerkelijke stijl hangt af van uw thema.','Generate shortcode'=>'Generate shortcode','Copied'=>'Copied','Labels'=>'Labels','Label colors'=>'Label colors','Label excluding VAT color'=>'Label excluding VAT color','Label including VAT color'=>'Label including VAT color','Switch between prices including and excluding VAT'=>'Switch between prices including and excluding VAT','Display options'=>'Display options','Switch colors'=>'Switch colors','Switch labels'=>'Switch labels','Switch aria label'=>'Switch aria label','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.','Tax switch'=>'Tax switch','Shortcode'=>'Shortcode','Documentation'=>'Documentation','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.','Tax switch settings'=>'Tax switch settings','Customize the tax switch settings.'=>'Customize the tax switch settings.','Including VAT text'=>'Including VAT text','Text to append to prices including VAT.'=>'Text to append to prices including VAT.','Excluding VAT text'=>'Excluding VAT text','Text to append to prices excluding VAT.'=>'Text to append to prices excluding VAT.','Where enabled'=>'Where enabled','On all pages'=>'On all pages','Only on WooCommerce pages'=>'Only on WooCommerce pages','Only on pages displaying prices'=>'Only on pages displaying prices','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce pages include: product archives/categories, single product pages and account pages.','On all pages where a Tax Switch block/shortcode is placed.'=>'On all pages where a Tax Switch block/shortcode is placed.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Hidden on pages that are not part of the store. Stops rendering completely.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>'Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.','Price switching in mini cart'=>'Price switching in mini cart','Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.'=>'Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.','By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).'=>'By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).','Shortcode settings'=>'Shortcode settings','Generate a tax switch shortcode.'=>'Generate a tax switch shortcode.','Tax Switch for WooCommerce'=>'Tax Switch for WooCommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']];
  • tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-en_US.po

    r3405724 r3460537  
    22msgstr ""
    33"Project-Id-Version: Tax Switch for WooCommerce\n"
    4 "POT-Creation-Date: 2025-11-29 10:32+0100\n"
    5 "PO-Revision-Date: 2025-11-29 10:33+0100\n"
     4"POT-Creation-Date: 2026-02-12 15:18+0100\n"
     5"PO-Revision-Date: 2026-02-12 15:18+0100\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "X-Generator: Poedit 3.7\n"
     12"X-Generator: Poedit 3.8\n"
    1313"X-Poedit-Basepath: ..\n"
    1414"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
     
    5151
    5252#: admin/partials/section-wdevs-tax-switch-shortcode.php:57
    53 #: block/src/switch/edit.js:67
     53#: block/src/switch/edit.js:68
    5454msgid "Switch type"
    5555msgstr "Switch type"
    5656
    5757#: admin/partials/section-wdevs-tax-switch-shortcode.php:61
    58 #: block/src/switch/edit.js:74
     58#: block/src/switch/edit.js:75
    5959msgid "Toggle switch"
    6060msgstr "Toggle switch"
    6161
    6262#: admin/partials/section-wdevs-tax-switch-shortcode.php:62
    63 #: block/src/switch/edit.js:81
     63#: block/src/switch/edit.js:82
    6464msgid "Buttons"
    6565msgstr "Buttons"
     
    7878msgstr "Inline style"
    7979
    80 #: admin/partials/section-wdevs-tax-switch-shortcode.php:81
    81 #: block/src/switch/edit.js:104
     80#: admin/partials/section-wdevs-tax-switch-shortcode.php:75
     81#: includes/class-wdevs-tax-switch-block-switch.php:56
     82msgid "Flat pill"
     83msgstr "Flat pill"
     84
     85#: admin/partials/section-wdevs-tax-switch-shortcode.php:82
     86#: block/src/switch/edit.js:105
    8287msgid "Switch color"
    8388msgstr "Switch color"
    8489
    85 #: admin/partials/section-wdevs-tax-switch-shortcode.php:86
    86 #: admin/partials/section-wdevs-tax-switch-shortcode.php:97
    87 #: admin/partials/section-wdevs-tax-switch-shortcode.php:108
    88 #: admin/partials/section-wdevs-tax-switch-shortcode.php:119
    89 #: admin/partials/section-wdevs-tax-switch-shortcode.php:130
     90#: admin/partials/section-wdevs-tax-switch-shortcode.php:87
     91#: admin/partials/section-wdevs-tax-switch-shortcode.php:98
     92#: admin/partials/section-wdevs-tax-switch-shortcode.php:109
     93#: admin/partials/section-wdevs-tax-switch-shortcode.php:120
     94#: admin/partials/section-wdevs-tax-switch-shortcode.php:131
    9095msgid "Default"
    9196msgstr "Default"
    9297
    93 #: admin/partials/section-wdevs-tax-switch-shortcode.php:92
    94 #: block/src/switch/edit.js:115
     98#: admin/partials/section-wdevs-tax-switch-shortcode.php:93
     99#: block/src/switch/edit.js:116
    95100msgid "Switch color checked"
    96101msgstr "Switch color checked"
    97102
    98 #: admin/partials/section-wdevs-tax-switch-shortcode.php:103
    99 #: block/src/switch/edit.js:126
     103#: admin/partials/section-wdevs-tax-switch-shortcode.php:104
     104#: block/src/switch/edit.js:127
    100105msgid "Background color"
    101106msgstr "Background color"
    102107
    103 #: admin/partials/section-wdevs-tax-switch-shortcode.php:114
    104 #: block/src/switch/edit.js:137
     108#: admin/partials/section-wdevs-tax-switch-shortcode.php:115
     109#: block/src/switch/edit.js:138
    105110msgid "Background color checked"
    106111msgstr "Background color checked"
    107112
    108 #: admin/partials/section-wdevs-tax-switch-shortcode.php:125
    109 #: block/src/switch/edit.js:148
     113#: admin/partials/section-wdevs-tax-switch-shortcode.php:126
     114#: block/src/switch/edit.js:149
    110115msgid "Text color"
    111116msgstr "Text color"
    112117
    113 #: admin/partials/section-wdevs-tax-switch-shortcode.php:136
    114 #: block/src/label/edit.js:61 block/src/switch/edit.js:163
     118#: admin/partials/section-wdevs-tax-switch-shortcode.php:137
     119#: block/src/label/edit.js:61 block/src/switch/edit.js:164
    115120msgid "Including VAT label"
    116121msgstr "Including VAT label"
    117122
    118 #: admin/partials/section-wdevs-tax-switch-shortcode.php:140
     123#: admin/partials/section-wdevs-tax-switch-shortcode.php:141
     124#: block/src/switch/components/SwitchComponent.js:180
    119125#: includes/class-wdevs-tax-switch-block-label.php:64
    120126#: includes/class-wdevs-tax-switch-block-label.php:82
    121 #: includes/class-wdevs-tax-switch-compatibility.php:340
    122127#: includes/class-wdevs-tax-switch-woocommerce.php:253
    123 #: public/class-wdevs-tax-switch-public.php:150
     128#: includes/trait-wdevs-tax-switch-helper.php:458
    124129msgid "Incl. VAT"
    125130msgstr "Incl. VAT"
    126131
    127 #: admin/partials/section-wdevs-tax-switch-shortcode.php:146
    128 #: block/src/label/edit.js:71 block/src/switch/edit.js:173
     132#: admin/partials/section-wdevs-tax-switch-shortcode.php:147
     133#: block/src/label/edit.js:71 block/src/switch/edit.js:174
    129134msgid "Excluding VAT label"
    130135msgstr "Excluding VAT label"
    131136
    132 #: admin/partials/section-wdevs-tax-switch-shortcode.php:150
     137#: admin/partials/section-wdevs-tax-switch-shortcode.php:151
     138#: block/src/switch/components/SwitchComponent.js:191
    133139#: includes/class-wdevs-tax-switch-block-label.php:65
    134140#: includes/class-wdevs-tax-switch-block-label.php:83
    135 #: includes/class-wdevs-tax-switch-compatibility.php:341
    136141#: includes/class-wdevs-tax-switch-woocommerce.php:260
    137 #: public/class-wdevs-tax-switch-public.php:151
     142#: includes/trait-wdevs-tax-switch-helper.php:461
    138143msgid "Excl. VAT"
    139144msgstr "Excl. VAT"
    140145
    141 #: admin/partials/section-wdevs-tax-switch-shortcode.php:156
     146#: admin/partials/section-wdevs-tax-switch-shortcode.php:157
    142147msgid "CSS classes"
    143148msgstr "CSS classes"
    144149
    145 #: admin/partials/section-wdevs-tax-switch-shortcode.php:161
    146 msgid "Options: is-style-default, is-style-inline or/and custom classes"
    147 msgstr "Options: is-style-default, is-style-inline or/and custom classes"
    148 
    149 #: admin/partials/section-wdevs-tax-switch-shortcode.php:172
     150#: admin/partials/section-wdevs-tax-switch-shortcode.php:162
     151msgid ""
     152"Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom "
     153"classes"
     154msgstr ""
     155"Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom "
     156"classes"
     157
     158#: admin/partials/section-wdevs-tax-switch-shortcode.php:173
    150159msgid "Preview"
    151160msgstr "Preview"
    152161
    153 #: admin/partials/section-wdevs-tax-switch-shortcode.php:176
     162#: admin/partials/section-wdevs-tax-switch-shortcode.php:177
    154163msgid "This is a preview. The actual style depends on your theme."
    155164msgstr "This is a preview. De daadwerkelijke stijl hangt af van uw thema."
    156165
    157 #: admin/partials/section-wdevs-tax-switch-shortcode.php:182
     166#: admin/partials/section-wdevs-tax-switch-shortcode.php:183
    158167msgid "Generate shortcode"
    159168msgstr "Generate shortcode"
    160169
    161 #: admin/partials/section-wdevs-tax-switch-shortcode.php:201
     170#: admin/partials/section-wdevs-tax-switch-shortcode.php:202
    162171msgid "Copied"
    163172msgstr "Copied"
     
    179188msgstr "Label including VAT color"
    180189
    181 #: block/src/switch/edit.js:60
     190#: block/src/switch/components/SwitchComponent.js:109
     191msgid "Switch between prices including and excluding VAT"
     192msgstr "Switch between prices including and excluding VAT"
     193
     194#: block/src/switch/edit.js:61
    182195msgid "Display options"
    183196msgstr "Display options"
    184197
    185 #: block/src/switch/edit.js:94
     198#: block/src/switch/edit.js:95
    186199msgid "Switch colors"
    187200msgstr "Switch colors"
    188201
    189 #: block/src/switch/edit.js:156
     202#: block/src/switch/edit.js:157
    190203msgid "Switch labels"
    191204msgstr "Switch labels"
     205
     206#: block/src/switch/edit.js:184
     207msgid "Switch aria label"
     208msgstr "Switch aria label"
    192209
    193210#: includes/class-wdevs-tax-switch-activator.php:36
     
    351368msgid "https://wijnberg.dev/"
    352369msgstr "https://wijnberg.dev/"
     370
     371#~ msgid "Toggle label text"
     372#~ msgstr "Toggle label text"
     373
     374#~ msgid "Text used for the toggle switch aria-label."
     375#~ msgstr "Text used for the toggle switch aria-label."
    353376
    354377#~ msgid ""
  • tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-nl_NL-43dcd1c557291b1a502cbd2ea4d36beb.json

    r3405724 r3460537  
    1 {"translation-revision-date": "2025-11-29 10:33+0100", "generator": "Poedit 3.7", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "nl_NL", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Label inclusief btw"], "Excluding VAT label": ["Label exclusief btw"], "Labels": ["Labels"], "Label colors": ["Labelkleuren"], "Label excluding VAT color": ["Label exclusief btw kleur"], "Label including VAT color": ["Label inclusief btw kleur"]}}}
     1{"translation-revision-date": "2026-02-12 15:18+0100", "generator": "Poedit 3.8", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "nl_NL", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Label inclusief btw"], "Excluding VAT label": ["Label exclusief btw"], "Labels": ["Labels"], "Label colors": ["Labelkleuren"], "Label excluding VAT color": ["Label exclusief btw kleur"], "Label including VAT color": ["Label inclusief btw kleur"]}}}
  • tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-nl_NL-a7d03486c29d1d1d1553c783663175ae.json

    r3405724 r3460537  
    1 {"translation-revision-date": "2025-11-29 10:33+0100", "generator": "Poedit 3.7", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "nl_NL", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Type schakelaar"], "Toggle switch": ["Schakelaar"], "Buttons": ["Knoppen"], "Switch color": ["Schakelaarkleur"], "Switch color checked": ["Schakelaarkleur ingeschakeld"], "Background color": ["Achtergrondkleur"], "Background color checked": ["Achtergrondkleur ingeschakeld"], "Text color": ["Tekstkleur"], "Including VAT label": ["Label inclusief btw"], "Excluding VAT label": ["Label exclusief btw"], "Display options": ["Weergave opties"], "Switch colors": ["Schakelaarkleuren"], "Switch labels": ["Schakelaar labels"]}}}
     1{"translation-revision-date": "2026-02-12 15:18+0100", "generator": "Poedit 3.8", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "nl_NL", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Type schakelaar"], "Toggle switch": ["Schakelaar"], "Buttons": ["Knoppen"], "Switch color": ["Schakelaarkleur"], "Switch color checked": ["Schakelaarkleur ingeschakeld"], "Background color": ["Achtergrondkleur"], "Background color checked": ["Achtergrondkleur ingeschakeld"], "Text color": ["Tekstkleur"], "Including VAT label": ["Label inclusief btw"], "Excluding VAT label": ["Label exclusief btw"], "Display options": ["Weergave opties"], "Switch colors": ["Schakelaarkleuren"], "Switch labels": ["Schakelaar labels"], "Switch aria label": ["Schakelaar aria label"]}}}
  • tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-nl_NL.l10n.php

    r3405724 r3460537  
    11<?php
    22// generated by Poedit from tax-switch-for-woocommerce-nl_NL.po, do not edit directly
    3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'nl_NL','pot-creation-date'=>'2025-11-29 10:33+0100','po-revision-date'=>'2025-11-29 10:33+0100','translation-revision-date'=>'2025-11-29 10:33+0100','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.7','messages'=>['Settings'=>'Instellingen','Tax switch shortcode'=>'Btw-schakelaar shortcode','Configure shortcode'=>'Shortcode configureren','Copy shortcode'=>'Shortcode kopiëren','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Kopieer de gegenereerde shortcode en plak het waar u de schakelaar wilt weergeven.','Close modal'=>'Popup sluiten','Switch type'=>'Type schakelaar','Toggle switch'=>'Schakelaar','Buttons'=>'Knoppen','Switch style'=>'Stijl schakelaar','Default style'=>'Standaard stijl','Inline style'=>'Inline stijl','Switch color'=>'Schakelaarkleur','Default'=>'Standaard','Switch color checked'=>'Schakelaarkleur ingeschakeld','Background color'=>'Achtergrondkleur','Background color checked'=>'Achtergrondkleur ingeschakeld','Text color'=>'Tekstkleur','Including VAT label'=>'Label inclusief btw','Incl. VAT'=>'Incl. btw','Excluding VAT label'=>'Label exclusief btw','Excl. VAT'=>'Excl. btw','CSS classes'=>'CSS klassen','Options: is-style-default, is-style-inline or/and custom classes'=>'Opties: is-style-default, is-style-inline of/en eigen klassen','Preview'=>'Voorvertoning','This is a preview. The actual style depends on your theme.'=>'Dit is een voorvertoning. De daadwerkelijke stijl wordt door uw thema bepaald.','Generate shortcode'=>'Shortcode genereren','Copied'=>'Gekopieerd','Labels'=>'Labels','Label colors'=>'Labelkleuren','Label excluding VAT color'=>'Label exclusief btw kleur','Label including VAT color'=>'Label inclusief btw kleur','Display options'=>'Weergave opties','Switch colors'=>'Schakelaarkleuren','Switch labels'=>'Schakelaar labels','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'Deze plugin vereist WooCommerce. Installeer en activeer WooCommerce voordat u deze plugin activeert.','Tax switch'=>'Btw-schakelaar','Shortcode'=>'Shortcode','Documentation'=>'Documentatie','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Btw-schakelaar voor Woocommerce is ontwikkeld door %s. Uw betrouwbare WordPress & WooCommerce pluginpartner uit Nederland.','Tax switch settings'=>'Btw-schakelaar instellingen','Customize the tax switch settings.'=>'Pas de instellingen van de btw-schakelaar aan.','Including VAT text'=>'Tekst inclusief btw','Text to append to prices including VAT.'=>'Tekst om toe te voegen aan prijzen inclusief btw.','Excluding VAT text'=>'Tekst exclusief btw','Text to append to prices excluding VAT.'=>'Tekst om toe te voegen aan prijzen exclusief btw.','Where enabled'=>'Waar ingeschakeld','On all pages'=>'Op alle pagina\'s','Only on WooCommerce pages'=>'Alleen op WooCommerce-pagina\'s','Only on pages displaying prices'=>'Alleen op pagina\'s met prijzen','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce-pagina\'s zijn: productarchieven/categorieën, individuele productpagina\'s en accountpagina\'s.','On all pages where a Tax Switch block/shortcode is placed.'=>'Op elke pagina waar een btw-schakelaar block/shortcode is geplaatst.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Verborgen op pagina\'s die niet onderdeel zijn van de webshop. Stopt het renderen volledig.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Verborgen op pagina\'s die geen prijzen weergeven. Wordt gerenderd, maar verborgen (iets langzamer).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>' Btw-schakelaar blocks/shortcodes zijn altijd verborgen op de winkelwagen- en afrekenpagina\'s.','Price switching in mini cart'=>'Prijs aanpassingen in de mini winkelwagen','Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.'=>'Geef klanten de mogelijkheid om te wisselen tussen prijzen inclusief en exclusief btw in de standaard WooCommerce mini-winkelwagen.','By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).'=>'Standaard is het omwisselen van prijzen in de mini winkelwagen uitgeschakeld om de winkelwagentotalen consistent te houden. Na het wijzigen van deze instelling moet je de mini-winkelwagen leegmaken en de pagina herladen om het bijgewerkte gedrag te zien (de markup van de mini-winkelwagen wordt gecached).','Shortcode settings'=>'Shortcode instellingen','Generate a tax switch shortcode.'=>'Genereer een btw-schakelaar shortcode.','Tax Switch for WooCommerce'=>'Btw-schakelaar voor Woocommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Laat klanten schakelen tussen prijzen inclusief en exclusief btw in uw WooCommerce webshop.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']];
     3return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'nl_NL','pot-creation-date'=>'2026-02-12 15:18+0100','po-revision-date'=>'2026-02-12 15:18+0100','translation-revision-date'=>'2026-02-12 15:18+0100','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.8','messages'=>['Settings'=>'Instellingen','Tax switch shortcode'=>'Btw-schakelaar shortcode','Configure shortcode'=>'Shortcode configureren','Copy shortcode'=>'Shortcode kopiëren','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Kopieer de gegenereerde shortcode en plak het waar u de schakelaar wilt weergeven.','Close modal'=>'Popup sluiten','Switch type'=>'Type schakelaar','Toggle switch'=>'Schakelaar','Buttons'=>'Knoppen','Switch style'=>'Stijl schakelaar','Default style'=>'Standaard stijl','Inline style'=>'Inline stijl','Flat pill'=>'Platte pilvormige stijl','Switch color'=>'Schakelaarkleur','Default'=>'Standaard','Switch color checked'=>'Schakelaarkleur ingeschakeld','Background color'=>'Achtergrondkleur','Background color checked'=>'Achtergrondkleur ingeschakeld','Text color'=>'Tekstkleur','Including VAT label'=>'Label inclusief btw','Incl. VAT'=>'Incl. btw','Excluding VAT label'=>'Label exclusief btw','Excl. VAT'=>'Excl. btw','CSS classes'=>'CSS klassen','Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom classes'=>'Opties: is-style-default, is-style-inline, is-style-flat-pill of/en eigen klassen','Preview'=>'Voorvertoning','This is a preview. The actual style depends on your theme.'=>'Dit is een voorvertoning. De daadwerkelijke stijl wordt door uw thema bepaald.','Generate shortcode'=>'Shortcode genereren','Copied'=>'Gekopieerd','Labels'=>'Labels','Label colors'=>'Labelkleuren','Label excluding VAT color'=>'Label exclusief btw kleur','Label including VAT color'=>'Label inclusief btw kleur','Switch between prices including and excluding VAT'=>'Schakel tussen prijzen inclusief en exclusief btw','Display options'=>'Weergave opties','Switch colors'=>'Schakelaarkleuren','Switch labels'=>'Schakelaar labels','Switch aria label'=>'Schakelaar aria label','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'Deze plugin vereist WooCommerce. Installeer en activeer WooCommerce voordat u deze plugin activeert.','Tax switch'=>'Btw-schakelaar','Shortcode'=>'Shortcode','Documentation'=>'Documentatie','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Btw-schakelaar voor Woocommerce is ontwikkeld door %s. Uw betrouwbare WordPress & WooCommerce pluginpartner uit Nederland.','Tax switch settings'=>'Btw-schakelaar instellingen','Customize the tax switch settings.'=>'Pas de instellingen van de btw-schakelaar aan.','Including VAT text'=>'Tekst inclusief btw','Text to append to prices including VAT.'=>'Tekst om toe te voegen aan prijzen inclusief btw.','Excluding VAT text'=>'Tekst exclusief btw','Text to append to prices excluding VAT.'=>'Tekst om toe te voegen aan prijzen exclusief btw.','Where enabled'=>'Waar ingeschakeld','On all pages'=>'Op alle pagina\'s','Only on WooCommerce pages'=>'Alleen op WooCommerce-pagina\'s','Only on pages displaying prices'=>'Alleen op pagina\'s met prijzen','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce-pagina\'s zijn: productarchieven/categorieën, individuele productpagina\'s en accountpagina\'s.','On all pages where a Tax Switch block/shortcode is placed.'=>'Op elke pagina waar een btw-schakelaar block/shortcode is geplaatst.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Verborgen op pagina\'s die niet onderdeel zijn van de webshop. Stopt het renderen volledig.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Verborgen op pagina\'s die geen prijzen weergeven. Wordt gerenderd, maar verborgen (iets langzamer).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>' Btw-schakelaar blocks/shortcodes zijn altijd verborgen op de winkelwagen- en afrekenpagina\'s.','Price switching in mini cart'=>'Prijs aanpassingen in de mini winkelwagen','Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.'=>'Geef klanten de mogelijkheid om te wisselen tussen prijzen inclusief en exclusief btw in de standaard WooCommerce mini-winkelwagen.','By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).'=>'Standaard is het omwisselen van prijzen in de mini winkelwagen uitgeschakeld om de winkelwagentotalen consistent te houden. Na het wijzigen van deze instelling moet je de mini-winkelwagen leegmaken en de pagina herladen om het bijgewerkte gedrag te zien (de markup van de mini-winkelwagen wordt gecached).','Shortcode settings'=>'Shortcode instellingen','Generate a tax switch shortcode.'=>'Genereer een btw-schakelaar shortcode.','Tax Switch for WooCommerce'=>'Btw-schakelaar voor Woocommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Laat klanten schakelen tussen prijzen inclusief en exclusief btw in uw WooCommerce webshop.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']];
  • tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-nl_NL.po

    r3405724 r3460537  
    33"Project-Id-Version: Tax Switch for WooCommerce\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2025-11-29 10:33+0100\n"
    6 "PO-Revision-Date: 2025-11-29 10:33+0100\n"
     5"POT-Creation-Date: 2026-02-12 15:18+0100\n"
     6"PO-Revision-Date: 2026-02-12 15:18+0100\n"
    77"Last-Translator: \n"
    88"Language-Team: \n"
     
    1111"Content-Type: text/plain; charset=UTF-8\n"
    1212"Content-Transfer-Encoding: 8bit\n"
    13 "X-Generator: Poedit 3.7\n"
     13"X-Generator: Poedit 3.8\n"
    1414"X-Poedit-Basepath: ..\n"
    1515"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
     
    5353
    5454#: admin/partials/section-wdevs-tax-switch-shortcode.php:57
    55 #: block/src/switch/edit.js:67
     55#: block/src/switch/edit.js:68
    5656msgid "Switch type"
    5757msgstr "Type schakelaar"
    5858
    5959#: admin/partials/section-wdevs-tax-switch-shortcode.php:61
    60 #: block/src/switch/edit.js:74
     60#: block/src/switch/edit.js:75
    6161msgid "Toggle switch"
    6262msgstr "Schakelaar"
    6363
    6464#: admin/partials/section-wdevs-tax-switch-shortcode.php:62
    65 #: block/src/switch/edit.js:81
     65#: block/src/switch/edit.js:82
    6666msgid "Buttons"
    6767msgstr "Knoppen"
     
    8080msgstr "Inline stijl"
    8181
    82 #: admin/partials/section-wdevs-tax-switch-shortcode.php:81
    83 #: block/src/switch/edit.js:104
     82#: admin/partials/section-wdevs-tax-switch-shortcode.php:75
     83#: includes/class-wdevs-tax-switch-block-switch.php:56
     84msgid "Flat pill"
     85msgstr "Platte pilvormige stijl"
     86
     87#: admin/partials/section-wdevs-tax-switch-shortcode.php:82
     88#: block/src/switch/edit.js:105
    8489msgid "Switch color"
    8590msgstr "Schakelaarkleur"
    8691
    87 #: admin/partials/section-wdevs-tax-switch-shortcode.php:86
    88 #: admin/partials/section-wdevs-tax-switch-shortcode.php:97
    89 #: admin/partials/section-wdevs-tax-switch-shortcode.php:108
    90 #: admin/partials/section-wdevs-tax-switch-shortcode.php:119
    91 #: admin/partials/section-wdevs-tax-switch-shortcode.php:130
     92#: admin/partials/section-wdevs-tax-switch-shortcode.php:87
     93#: admin/partials/section-wdevs-tax-switch-shortcode.php:98
     94#: admin/partials/section-wdevs-tax-switch-shortcode.php:109
     95#: admin/partials/section-wdevs-tax-switch-shortcode.php:120
     96#: admin/partials/section-wdevs-tax-switch-shortcode.php:131
    9297msgid "Default"
    9398msgstr "Standaard"
    9499
    95 #: admin/partials/section-wdevs-tax-switch-shortcode.php:92
    96 #: block/src/switch/edit.js:115
     100#: admin/partials/section-wdevs-tax-switch-shortcode.php:93
     101#: block/src/switch/edit.js:116
    97102msgid "Switch color checked"
    98103msgstr "Schakelaarkleur ingeschakeld"
    99104
    100 #: admin/partials/section-wdevs-tax-switch-shortcode.php:103
    101 #: block/src/switch/edit.js:126
     105#: admin/partials/section-wdevs-tax-switch-shortcode.php:104
     106#: block/src/switch/edit.js:127
    102107msgid "Background color"
    103108msgstr "Achtergrondkleur"
    104109
    105 #: admin/partials/section-wdevs-tax-switch-shortcode.php:114
    106 #: block/src/switch/edit.js:137
     110#: admin/partials/section-wdevs-tax-switch-shortcode.php:115
     111#: block/src/switch/edit.js:138
    107112msgid "Background color checked"
    108113msgstr "Achtergrondkleur ingeschakeld"
    109114
    110 #: admin/partials/section-wdevs-tax-switch-shortcode.php:125
    111 #: block/src/switch/edit.js:148
     115#: admin/partials/section-wdevs-tax-switch-shortcode.php:126
     116#: block/src/switch/edit.js:149
    112117msgid "Text color"
    113118msgstr "Tekstkleur"
    114119
    115 #: admin/partials/section-wdevs-tax-switch-shortcode.php:136
    116 #: block/src/label/edit.js:61 block/src/switch/edit.js:163
     120#: admin/partials/section-wdevs-tax-switch-shortcode.php:137
     121#: block/src/label/edit.js:61 block/src/switch/edit.js:164
    117122msgid "Including VAT label"
    118123msgstr "Label inclusief btw"
    119124
    120 #: admin/partials/section-wdevs-tax-switch-shortcode.php:140
     125#: admin/partials/section-wdevs-tax-switch-shortcode.php:141
     126#: block/src/switch/components/SwitchComponent.js:180
    121127#: includes/class-wdevs-tax-switch-block-label.php:64
    122128#: includes/class-wdevs-tax-switch-block-label.php:82
    123 #: includes/class-wdevs-tax-switch-compatibility.php:340
    124129#: includes/class-wdevs-tax-switch-woocommerce.php:253
    125 #: public/class-wdevs-tax-switch-public.php:150
     130#: includes/trait-wdevs-tax-switch-helper.php:458
    126131msgid "Incl. VAT"
    127132msgstr "Incl. btw"
    128133
    129 #: admin/partials/section-wdevs-tax-switch-shortcode.php:146
    130 #: block/src/label/edit.js:71 block/src/switch/edit.js:173
     134#: admin/partials/section-wdevs-tax-switch-shortcode.php:147
     135#: block/src/label/edit.js:71 block/src/switch/edit.js:174
    131136msgid "Excluding VAT label"
    132137msgstr "Label exclusief btw"
    133138
    134 #: admin/partials/section-wdevs-tax-switch-shortcode.php:150
     139#: admin/partials/section-wdevs-tax-switch-shortcode.php:151
     140#: block/src/switch/components/SwitchComponent.js:191
    135141#: includes/class-wdevs-tax-switch-block-label.php:65
    136142#: includes/class-wdevs-tax-switch-block-label.php:83
    137 #: includes/class-wdevs-tax-switch-compatibility.php:341
    138143#: includes/class-wdevs-tax-switch-woocommerce.php:260
    139 #: public/class-wdevs-tax-switch-public.php:151
     144#: includes/trait-wdevs-tax-switch-helper.php:461
    140145msgid "Excl. VAT"
    141146msgstr "Excl. btw"
    142147
    143 #: admin/partials/section-wdevs-tax-switch-shortcode.php:156
     148#: admin/partials/section-wdevs-tax-switch-shortcode.php:157
    144149msgid "CSS classes"
    145150msgstr "CSS klassen"
    146151
    147 #: admin/partials/section-wdevs-tax-switch-shortcode.php:161
    148 msgid "Options: is-style-default, is-style-inline or/and custom classes"
    149 msgstr "Opties: is-style-default, is-style-inline of/en eigen klassen"
    150 
    151 #: admin/partials/section-wdevs-tax-switch-shortcode.php:172
     152#: admin/partials/section-wdevs-tax-switch-shortcode.php:162
     153msgid ""
     154"Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom "
     155"classes"
     156msgstr ""
     157"Opties: is-style-default, is-style-inline, is-style-flat-pill of/en eigen "
     158"klassen"
     159
     160#: admin/partials/section-wdevs-tax-switch-shortcode.php:173
    152161msgid "Preview"
    153162msgstr "Voorvertoning"
    154163
    155 #: admin/partials/section-wdevs-tax-switch-shortcode.php:176
     164#: admin/partials/section-wdevs-tax-switch-shortcode.php:177
    156165msgid "This is a preview. The actual style depends on your theme."
    157166msgstr ""
     
    159168"bepaald."
    160169
    161 #: admin/partials/section-wdevs-tax-switch-shortcode.php:182
     170#: admin/partials/section-wdevs-tax-switch-shortcode.php:183
    162171msgid "Generate shortcode"
    163172msgstr "Shortcode genereren"
    164173
    165 #: admin/partials/section-wdevs-tax-switch-shortcode.php:201
     174#: admin/partials/section-wdevs-tax-switch-shortcode.php:202
    166175msgid "Copied"
    167176msgstr "Gekopieerd"
     
    183192msgstr "Label inclusief btw kleur"
    184193
    185 #: block/src/switch/edit.js:60
     194#: block/src/switch/components/SwitchComponent.js:109
     195msgid "Switch between prices including and excluding VAT"
     196msgstr "Schakel tussen prijzen inclusief en exclusief btw"
     197
     198#: block/src/switch/edit.js:61
    186199msgid "Display options"
    187200msgstr "Weergave opties"
    188201
    189 #: block/src/switch/edit.js:94
     202#: block/src/switch/edit.js:95
    190203msgid "Switch colors"
    191204msgstr "Schakelaarkleuren"
    192205
    193 #: block/src/switch/edit.js:156
     206#: block/src/switch/edit.js:157
    194207msgid "Switch labels"
    195208msgstr "Schakelaar labels"
     209
     210#: block/src/switch/edit.js:184
     211msgid "Switch aria label"
     212msgstr "Schakelaar aria label"
    196213
    197214#: includes/class-wdevs-tax-switch-activator.php:36
     
    358375msgid "https://wijnberg.dev/"
    359376msgstr "https://wijnberg.dev/"
     377
     378#~ msgid "Toggle label text"
     379#~ msgstr "Toggle-labeltekst"
     380
     381#~ msgid "Text used for the toggle switch aria-label."
     382#~ msgstr ""
     383#~ "Tekst die wordt gebruikt voor het aria-label van de wisselschakelaar."
    360384
    361385#~ msgid ""
  • tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-sv_SE-43dcd1c557291b1a502cbd2ea4d36beb.json

    r3405724 r3460537  
    1 {"translation-revision-date": "2025-11-29 10:33+0100", "generator": "Poedit 3.7", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "sv_SE", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Inkl. moms etikett"], "Excluding VAT label": ["Exkl. moms etikett"], "Labels": ["Etiketter"], "Label colors": ["Etikett f\u00e4rger"], "Label excluding VAT color": ["Etikett f\u00e4rg exklusive moms"], "Label including VAT color": ["Etikett f\u00e4rg inklusive moms"]}}}
     1{"translation-revision-date": "2026-02-12 15:18+0100", "generator": "Poedit 3.8", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "sv_SE", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Inkl. moms etikett"], "Excluding VAT label": ["Exkl. moms etikett"], "Labels": ["Etiketter"], "Label colors": ["Etikett f\u00e4rger"], "Label excluding VAT color": ["Etikett f\u00e4rg exklusive moms"], "Label including VAT color": ["Etikett f\u00e4rg inklusive moms"]}}}
  • tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-sv_SE-a7d03486c29d1d1d1553c783663175ae.json

    r3405724 r3460537  
    1 {"translation-revision-date": "2025-11-29 10:33+0100", "generator": "Poedit 3.7", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "sv_SE", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Byt typ"], "Toggle switch": ["Switch"], "Buttons": ["Knappar"], "Switch color": ["Byt f\u00e4rg"], "Switch color checked": ["Byt f\u00e4rg markerad"], "Background color": ["Bakgrundsf\u00e4rg"], "Background color checked": ["Bakgrundsf\u00e4rg markerad"], "Text color": ["Textf\u00e4rg"], "Including VAT label": ["Inkl. moms etikett"], "Excluding VAT label": ["Exkl. moms etikett"], "Display options": ["Visningsalternativ"], "Switch colors": ["Byt f\u00e4rger"], "Switch labels": ["Byt etiketter"]}}}
     1{"translation-revision-date": "2026-02-12 15:18+0100", "generator": "Poedit 3.8", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "sv_SE", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Byt typ"], "Toggle switch": ["Switch"], "Buttons": ["Knappar"], "Switch color": ["Byt f\u00e4rg"], "Switch color checked": ["Byt f\u00e4rg markerad"], "Background color": ["Bakgrundsf\u00e4rg"], "Background color checked": ["Bakgrundsf\u00e4rg markerad"], "Text color": ["Textf\u00e4rg"], "Including VAT label": ["Inkl. moms etikett"], "Excluding VAT label": ["Exkl. moms etikett"], "Display options": ["Visningsalternativ"], "Switch colors": ["Byt f\u00e4rger"], "Switch labels": ["Byt etiketter"], "Switch aria label": ["Byt aria label"]}}}
  • tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-sv_SE.l10n.php

    r3405724 r3460537  
    11<?php
    22// generated by Poedit from tax-switch-for-woocommerce-sv_SE.po, do not edit directly
    3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'sv_SE','pot-creation-date'=>'2025-11-29 10:33+0100','po-revision-date'=>'2025-11-29 10:33+0100','translation-revision-date'=>'2025-11-29 10:33+0100','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.7','messages'=>['Settings'=>'Inställningar','Tax switch shortcode'=>'Momsswitch shortcode','Configure shortcode'=>'Konfigurera shortcode','Copy shortcode'=>'Kopiera shortcode','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Kopiera den genererade shortcoden och klistra in den där du vill att momsswitchen ska visas.','Close modal'=>'Stäng modal','Switch type'=>'Byt typ','Toggle switch'=>'Switch','Buttons'=>'Knappar','Switch style'=>'Byt stil','Default style'=>'Standard-stil','Inline style'=>'Inline-stil','Switch color'=>'Byt färg','Default'=>'Standard','Switch color checked'=>'Byt färg markerad','Background color'=>'Bakgrundsfärg','Background color checked'=>'Bakgrundsfärg markerad','Text color'=>'Textfärg','Including VAT label'=>'Inkl. moms etikett','Incl. VAT'=>'Inkl. moms','Excluding VAT label'=>'Exkl. moms etikett','Excl. VAT'=>'Exkl. moms','CSS classes'=>'CSS-klasser','Options: is-style-default, is-style-inline or/and custom classes'=>'Alternativ: is-style-default, is-style-inline och/eller anpassade klasser','Preview'=>'Förhandsvisning','This is a preview. The actual style depends on your theme.'=>'Detta är en förhandsvisning. Den faktiska stilen beror på ditt tema.','Generate shortcode'=>'Generera shortcode','Copied'=>'Kopierad','Labels'=>'Etiketter','Label colors'=>'Etikett färger','Label excluding VAT color'=>'Etikett färg exklusive moms','Label including VAT color'=>'Etikett färg inklusive moms','Display options'=>'Visningsalternativ','Switch colors'=>'Byt färger','Switch labels'=>'Byt etiketter','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'Det här tillägget kräver WooCommerce. Installera och aktivera WooCommerce innan du aktiverar detta tillägg.','Tax switch'=>'Momsswitch','Shortcode'=>'Shortcode','Documentation'=>'Dokumentation','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Momsswitch för WooCommerce är utvecklad av %s. Din betrodda WordPress- och WooCommerce-pluginpartner från Nederländerna.','Tax switch settings'=>'Inställningar för momsswitch','Customize the tax switch settings.'=>'Anpassa inställningarna för momsswitch.','Including VAT text'=>'Text för inklusive moms','Text to append to prices including VAT.'=>'Text som läggs till på priser inklusive moms.','Excluding VAT text'=>'Text för exklusive moms','Text to append to prices excluding VAT.'=>'Text som läggs till på priser exklusive moms.','Where enabled'=>'Där aktiverat','On all pages'=>'På alla sidor','Only on WooCommerce pages'=>'Endast på WooCommerce-sidor','Only on pages displaying prices'=>'Endast på sidor som visar priser','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce-sidor inkluderar: produktarkiv/kategorier, enskilda produktsidor och kontosidor.','On all pages where a Tax Switch block/shortcode is placed.'=>'På alla sidor där ett Tax Switch-block/shortcode är placerat.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Döljs på sidor som inte är en del av butiken. Slutar rendera helt.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Döljs på sidor som inte visar några priser. Renderar fortfarande men döljer komponenterna (något långsammare).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>'Momsswitch för WooCommerce block/kortkoder är alltid dolda på varukorgen och kassasidorna.','Price switching in mini cart'=>'Prisväxling i minivarukorgen','Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.'=>'Tillåt kunder att växla mellan priser inklusive och exklusive moms i WooCommerce standardminivarukorg.','By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).'=>'Som standard är prisväxling inaktiverad i minivarukorgen för att hålla varukorgens totalsummor konsekventa. Efter att du ändrat den här inställningen bör du tömma minivarukorgen och ladda om sidan för att se det uppdaterade beteendet (markuppen för minivarukorgen cachas).','Shortcode settings'=>'Shortcode-inställningar','Generate a tax switch shortcode.'=>'Generera en momsswitch shortcode.','Tax Switch for WooCommerce'=>'Momsswitch för WooCommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Låt kunder växla mellan priser inklusive och exklusive moms i din WooCommerce-butik.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']];
     3return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'sv_SE','pot-creation-date'=>'2026-02-12 15:18+0100','po-revision-date'=>'2026-02-12 15:18+0100','translation-revision-date'=>'2026-02-12 15:18+0100','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.8','messages'=>['Settings'=>'Inställningar','Tax switch shortcode'=>'Momsswitch shortcode','Configure shortcode'=>'Konfigurera shortcode','Copy shortcode'=>'Kopiera shortcode','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Kopiera den genererade shortcoden och klistra in den där du vill att momsswitchen ska visas.','Close modal'=>'Stäng modal','Switch type'=>'Byt typ','Toggle switch'=>'Switch','Buttons'=>'Knappar','Switch style'=>'Byt stil','Default style'=>'Standard-stil','Inline style'=>'Inline-stil','Flat pill'=>'Platt pillformad','Switch color'=>'Byt färg','Default'=>'Standard','Switch color checked'=>'Byt färg markerad','Background color'=>'Bakgrundsfärg','Background color checked'=>'Bakgrundsfärg markerad','Text color'=>'Textfärg','Including VAT label'=>'Inkl. moms etikett','Incl. VAT'=>'Inkl. moms','Excluding VAT label'=>'Exkl. moms etikett','Excl. VAT'=>'Exkl. moms','CSS classes'=>'CSS-klasser','Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom classes'=>'Alternativ: is-style-default, is-style-inline, is-style-flat-pill och/eller anpassade klasser','Preview'=>'Förhandsvisning','This is a preview. The actual style depends on your theme.'=>'Detta är en förhandsvisning. Den faktiska stilen beror på ditt tema.','Generate shortcode'=>'Generera shortcode','Copied'=>'Kopierad','Labels'=>'Etiketter','Label colors'=>'Etikett färger','Label excluding VAT color'=>'Etikett färg exklusive moms','Label including VAT color'=>'Etikett färg inklusive moms','Switch between prices including and excluding VAT'=>'Växla mellan priser inklusive och exklusive moms','Display options'=>'Visningsalternativ','Switch colors'=>'Byt färger','Switch labels'=>'Byt etiketter','Switch aria label'=>'Byt aria label','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'Det här tillägget kräver WooCommerce. Installera och aktivera WooCommerce innan du aktiverar detta tillägg.','Tax switch'=>'Momsswitch','Shortcode'=>'Shortcode','Documentation'=>'Dokumentation','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Momsswitch för WooCommerce är utvecklad av %s. Din betrodda WordPress- och WooCommerce-pluginpartner från Nederländerna.','Tax switch settings'=>'Inställningar för momsswitch','Customize the tax switch settings.'=>'Anpassa inställningarna för momsswitch.','Including VAT text'=>'Text för inklusive moms','Text to append to prices including VAT.'=>'Text som läggs till på priser inklusive moms.','Excluding VAT text'=>'Text för exklusive moms','Text to append to prices excluding VAT.'=>'Text som läggs till på priser exklusive moms.','Where enabled'=>'Där aktiverat','On all pages'=>'På alla sidor','Only on WooCommerce pages'=>'Endast på WooCommerce-sidor','Only on pages displaying prices'=>'Endast på sidor som visar priser','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce-sidor inkluderar: produktarkiv/kategorier, enskilda produktsidor och kontosidor.','On all pages where a Tax Switch block/shortcode is placed.'=>'På alla sidor där ett Tax Switch-block/shortcode är placerat.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Döljs på sidor som inte är en del av butiken. Slutar rendera helt.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Döljs på sidor som inte visar några priser. Renderar fortfarande men döljer komponenterna (något långsammare).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>'Momsswitch för WooCommerce block/kortkoder är alltid dolda på varukorgen och kassasidorna.','Price switching in mini cart'=>'Prisväxling i minivarukorgen','Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.'=>'Tillåt kunder att växla mellan priser inklusive och exklusive moms i WooCommerce standardminivarukorg.','By default, price switching is disabled in the mini cart to keep cart totals consistent. After changing this setting, empty the mini cart and reload to see the updated behavior (the mini cart markup is cached).'=>'Som standard är prisväxling inaktiverad i minivarukorgen för att hålla varukorgens totalsummor konsekventa. Efter att du ändrat den här inställningen bör du tömma minivarukorgen och ladda om sidan för att se det uppdaterade beteendet (markuppen för minivarukorgen cachas).','Shortcode settings'=>'Shortcode-inställningar','Generate a tax switch shortcode.'=>'Generera en momsswitch shortcode.','Tax Switch for WooCommerce'=>'Momsswitch för WooCommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Låt kunder växla mellan priser inklusive och exklusive moms i din WooCommerce-butik.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']];
  • tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-sv_SE.po

    r3405724 r3460537  
    33"Project-Id-Version: Tax Switch for WooCommerce\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2025-11-29 10:33+0100\n"
    6 "PO-Revision-Date: 2025-11-29 10:33+0100\n"
     5"POT-Creation-Date: 2026-02-12 15:18+0100\n"
     6"PO-Revision-Date: 2026-02-12 15:18+0100\n"
    77"Last-Translator: \n"
    88"Language-Team: \n"
     
    1111"Content-Type: text/plain; charset=UTF-8\n"
    1212"Content-Transfer-Encoding: 8bit\n"
    13 "X-Generator: Poedit 3.7\n"
     13"X-Generator: Poedit 3.8\n"
    1414"X-Poedit-Basepath: ..\n"
    1515"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
     
    5353
    5454#: admin/partials/section-wdevs-tax-switch-shortcode.php:57
    55 #: block/src/switch/edit.js:67
     55#: block/src/switch/edit.js:68
    5656msgid "Switch type"
    5757msgstr "Byt typ"
    5858
    5959#: admin/partials/section-wdevs-tax-switch-shortcode.php:61
    60 #: block/src/switch/edit.js:74
     60#: block/src/switch/edit.js:75
    6161msgid "Toggle switch"
    6262msgstr "Switch"
    6363
    6464#: admin/partials/section-wdevs-tax-switch-shortcode.php:62
    65 #: block/src/switch/edit.js:81
     65#: block/src/switch/edit.js:82
    6666msgid "Buttons"
    6767msgstr "Knappar"
     
    8080msgstr "Inline-stil"
    8181
    82 #: admin/partials/section-wdevs-tax-switch-shortcode.php:81
    83 #: block/src/switch/edit.js:104
     82#: admin/partials/section-wdevs-tax-switch-shortcode.php:75
     83#: includes/class-wdevs-tax-switch-block-switch.php:56
     84msgid "Flat pill"
     85msgstr "Platt pillformad"
     86
     87#: admin/partials/section-wdevs-tax-switch-shortcode.php:82
     88#: block/src/switch/edit.js:105
    8489msgid "Switch color"
    8590msgstr "Byt färg"
    8691
    87 #: admin/partials/section-wdevs-tax-switch-shortcode.php:86
    88 #: admin/partials/section-wdevs-tax-switch-shortcode.php:97
    89 #: admin/partials/section-wdevs-tax-switch-shortcode.php:108
    90 #: admin/partials/section-wdevs-tax-switch-shortcode.php:119
    91 #: admin/partials/section-wdevs-tax-switch-shortcode.php:130
     92#: admin/partials/section-wdevs-tax-switch-shortcode.php:87
     93#: admin/partials/section-wdevs-tax-switch-shortcode.php:98
     94#: admin/partials/section-wdevs-tax-switch-shortcode.php:109
     95#: admin/partials/section-wdevs-tax-switch-shortcode.php:120
     96#: admin/partials/section-wdevs-tax-switch-shortcode.php:131
    9297msgid "Default"
    9398msgstr "Standard"
    9499
    95 #: admin/partials/section-wdevs-tax-switch-shortcode.php:92
    96 #: block/src/switch/edit.js:115
     100#: admin/partials/section-wdevs-tax-switch-shortcode.php:93
     101#: block/src/switch/edit.js:116
    97102msgid "Switch color checked"
    98103msgstr "Byt färg markerad"
    99104
    100 #: admin/partials/section-wdevs-tax-switch-shortcode.php:103
    101 #: block/src/switch/edit.js:126
     105#: admin/partials/section-wdevs-tax-switch-shortcode.php:104
     106#: block/src/switch/edit.js:127
    102107msgid "Background color"
    103108msgstr "Bakgrundsfärg"
    104109
    105 #: admin/partials/section-wdevs-tax-switch-shortcode.php:114
    106 #: block/src/switch/edit.js:137
     110#: admin/partials/section-wdevs-tax-switch-shortcode.php:115
     111#: block/src/switch/edit.js:138
    107112msgid "Background color checked"
    108113msgstr "Bakgrundsfärg markerad"
    109114
    110 #: admin/partials/section-wdevs-tax-switch-shortcode.php:125
    111 #: block/src/switch/edit.js:148
     115#: admin/partials/section-wdevs-tax-switch-shortcode.php:126
     116#: block/src/switch/edit.js:149
    112117msgid "Text color"
    113118msgstr "Textfärg"
    114119
    115 #: admin/partials/section-wdevs-tax-switch-shortcode.php:136
    116 #: block/src/label/edit.js:61 block/src/switch/edit.js:163
     120#: admin/partials/section-wdevs-tax-switch-shortcode.php:137
     121#: block/src/label/edit.js:61 block/src/switch/edit.js:164
    117122msgid "Including VAT label"
    118123msgstr "Inkl. moms etikett"
    119124
    120 #: admin/partials/section-wdevs-tax-switch-shortcode.php:140
     125#: admin/partials/section-wdevs-tax-switch-shortcode.php:141
     126#: block/src/switch/components/SwitchComponent.js:180
    121127#: includes/class-wdevs-tax-switch-block-label.php:64
    122128#: includes/class-wdevs-tax-switch-block-label.php:82
    123 #: includes/class-wdevs-tax-switch-compatibility.php:340
    124129#: includes/class-wdevs-tax-switch-woocommerce.php:253
    125 #: public/class-wdevs-tax-switch-public.php:150
     130#: includes/trait-wdevs-tax-switch-helper.php:458
    126131msgid "Incl. VAT"
    127132msgstr "Inkl. moms"
    128133
    129 #: admin/partials/section-wdevs-tax-switch-shortcode.php:146
    130 #: block/src/label/edit.js:71 block/src/switch/edit.js:173
     134#: admin/partials/section-wdevs-tax-switch-shortcode.php:147
     135#: block/src/label/edit.js:71 block/src/switch/edit.js:174
    131136msgid "Excluding VAT label"
    132137msgstr "Exkl. moms etikett"
    133138
    134 #: admin/partials/section-wdevs-tax-switch-shortcode.php:150
     139#: admin/partials/section-wdevs-tax-switch-shortcode.php:151
     140#: block/src/switch/components/SwitchComponent.js:191
    135141#: includes/class-wdevs-tax-switch-block-label.php:65
    136142#: includes/class-wdevs-tax-switch-block-label.php:83
    137 #: includes/class-wdevs-tax-switch-compatibility.php:341
    138143#: includes/class-wdevs-tax-switch-woocommerce.php:260
    139 #: public/class-wdevs-tax-switch-public.php:151
     144#: includes/trait-wdevs-tax-switch-helper.php:461
    140145msgid "Excl. VAT"
    141146msgstr "Exkl. moms"
    142147
    143 #: admin/partials/section-wdevs-tax-switch-shortcode.php:156
     148#: admin/partials/section-wdevs-tax-switch-shortcode.php:157
    144149msgid "CSS classes"
    145150msgstr "CSS-klasser"
    146151
    147 #: admin/partials/section-wdevs-tax-switch-shortcode.php:161
    148 msgid "Options: is-style-default, is-style-inline or/and custom classes"
    149 msgstr ""
    150 "Alternativ: is-style-default, is-style-inline och/eller anpassade klasser"
    151 
    152 #: admin/partials/section-wdevs-tax-switch-shortcode.php:172
     152#: admin/partials/section-wdevs-tax-switch-shortcode.php:162
     153msgid ""
     154"Options: is-style-default, is-style-inline, is-style-flat-pill or/and custom "
     155"classes"
     156msgstr ""
     157"Alternativ: is-style-default, is-style-inline, is-style-flat-pill och/eller "
     158"anpassade klasser"
     159
     160#: admin/partials/section-wdevs-tax-switch-shortcode.php:173
    153161msgid "Preview"
    154162msgstr "Förhandsvisning"
    155163
    156 #: admin/partials/section-wdevs-tax-switch-shortcode.php:176
     164#: admin/partials/section-wdevs-tax-switch-shortcode.php:177
    157165msgid "This is a preview. The actual style depends on your theme."
    158166msgstr "Detta är en förhandsvisning. Den faktiska stilen beror på ditt tema."
    159167
    160 #: admin/partials/section-wdevs-tax-switch-shortcode.php:182
     168#: admin/partials/section-wdevs-tax-switch-shortcode.php:183
    161169msgid "Generate shortcode"
    162170msgstr "Generera shortcode"
    163171
    164 #: admin/partials/section-wdevs-tax-switch-shortcode.php:201
     172#: admin/partials/section-wdevs-tax-switch-shortcode.php:202
    165173msgid "Copied"
    166174msgstr "Kopierad"
     
    182190msgstr "Etikett färg inklusive moms"
    183191
    184 #: block/src/switch/edit.js:60
     192#: block/src/switch/components/SwitchComponent.js:109
     193msgid "Switch between prices including and excluding VAT"
     194msgstr "Växla mellan priser inklusive och exklusive moms"
     195
     196#: block/src/switch/edit.js:61
    185197msgid "Display options"
    186198msgstr "Visningsalternativ"
    187199
    188 #: block/src/switch/edit.js:94
     200#: block/src/switch/edit.js:95
    189201msgid "Switch colors"
    190202msgstr "Byt färger"
    191203
    192 #: block/src/switch/edit.js:156
     204#: block/src/switch/edit.js:157
    193205msgid "Switch labels"
    194206msgstr "Byt etiketter"
     207
     208#: block/src/switch/edit.js:184
     209msgid "Switch aria label"
     210msgstr "Byt aria label"
    195211
    196212#: includes/class-wdevs-tax-switch-activator.php:36
     
    354370msgid "https://wijnberg.dev/"
    355371msgstr "https://wijnberg.dev/"
     372
     373#~ msgid "Toggle label text"
     374#~ msgstr "Växelns etiketttext"
     375
     376#~ msgid "Text used for the toggle switch aria-label."
     377#~ msgstr "Text som används för växelns aria-etikett."
    356378
    357379#~ msgid ""
  • tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce.pot

    r3405724 r3460537  
    33msgstr ""
    44"Project-Id-Version: Tax Switch for WooCommerce\n"
    5 "POT-Creation-Date: 2025-11-29 10:32+0100\n"
     5"POT-Creation-Date: 2026-02-12 15:17+0100\n"
    66"PO-Revision-Date: 2024-09-16 10:21+0200\n"
    77"Last-Translator: \n"
     
    1111"Content-Transfer-Encoding: 8bit\n"
    1212"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
    13 "X-Generator: Poedit 3.7\n"
     13"X-Generator: Poedit 3.8\n"
    1414"X-Poedit-Basepath: ..\n"
    1515"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
     
    5151
    5252#: admin/partials/section-wdevs-tax-switch-shortcode.php:57
    53 #: block/src/switch/edit.js:67
     53#: block/src/switch/edit.js:68
    5454msgid "Switch type"
    5555msgstr ""
    5656
    5757#: admin/partials/section-wdevs-tax-switch-shortcode.php:61
    58 #: block/src/switch/edit.js:74
     58#: block/src/switch/edit.js:75
    5959msgid "Toggle switch"
    6060msgstr ""
    6161
    6262#: admin/partials/section-wdevs-tax-switch-shortcode.php:62
    63 #: block/src/switch/edit.js:81
     63#: block/src/switch/edit.js:82
    6464msgid "Buttons"
    6565msgstr ""
     
    7878msgstr ""
    7979
    80 #: admin/partials/section-wdevs-tax-switch-shortcode.php:81
    81 #: block/src/switch/edit.js:104
     80#: admin/partials/section-wdevs-tax-switch-shortcode.php:75
     81#: includes/class-wdevs-tax-switch-block-switch.php:56
     82msgid "Flat pill"
     83msgstr ""
     84
     85#: admin/partials/section-wdevs-tax-switch-shortcode.php:82
     86#: block/src/switch/edit.js:105
    8287msgid "Switch color"
    8388msgstr ""
    8489
    85 #: admin/partials/section-wdevs-tax-switch-shortcode.php:86
    86 #: admin/partials/section-wdevs-tax-switch-shortcode.php:97
    87 #: admin/partials/section-wdevs-tax-switch-shortcode.php:108
    88 #: admin/partials/section-wdevs-tax-switch-shortcode.php:119
    89 #: admin/partials/section-wdevs-tax-switch-shortcode.php:130
     90#: admin/partials/section-wdevs-tax-switch-shortcode.php:87
     91#: admin/partials/section-wdevs-tax-switch-shortcode.php:98
     92#: admin/partials/section-wdevs-tax-switch-shortcode.php:109
     93#: admin/partials/section-wdevs-tax-switch-shortcode.php:120
     94#: admin/partials/section-wdevs-tax-switch-shortcode.php:131
    9095msgid "Default"
    9196msgstr ""
    9297
    93 #: admin/partials/section-wdevs-tax-switch-shortcode.php:92
    94 #: block/src/switch/edit.js:115
     98#: admin/partials/section-wdevs-tax-switch-shortcode.php:93
     99#: block/src/switch/edit.js:116
    95100msgid "Switch color checked"
    96101msgstr ""
    97102
    98 #: admin/partials/section-wdevs-tax-switch-shortcode.php:103
    99 #: block/src/switch/edit.js:126
     103#: admin/partials/section-wdevs-tax-switch-shortcode.php:104
     104#: block/src/switch/edit.js:127
    100105msgid "Background color"
    101106msgstr ""
    102107
    103 #: admin/partials/section-wdevs-tax-switch-shortcode.php:114
    104 #: block/src/switch/edit.js:137
     108#: admin/partials/section-wdevs-tax-switch-shortcode.php:115
     109#: block/src/switch/edit.js:138
    105110msgid "Background color checked"
    106111msgstr ""
    107112
    108 #: admin/partials/section-wdevs-tax-switch-shortcode.php:125
    109 #: block/src/switch/edit.js:148
     113#: admin/partials/section-wdevs-tax-switch-shortcode.php:126
     114#: block/src/switch/edit.js:149
    110115msgid "Text color"
    111116msgstr ""
    112117
    113 #: admin/partials/section-wdevs-tax-switch-shortcode.php:136
    114 #: block/src/label/edit.js:61 block/src/switch/edit.js:163
     118#: admin/partials/section-wdevs-tax-switch-shortcode.php:137
     119#: block/src/label/edit.js:61 block/src/switch/edit.js:164
    115120msgid "Including VAT label"
    116121msgstr ""
    117122
    118 #: admin/partials/section-wdevs-tax-switch-shortcode.php:140
     123#: admin/partials/section-wdevs-tax-switch-shortcode.php:141
     124#: block/src/switch/components/SwitchComponent.js:180
    119125#: includes/class-wdevs-tax-switch-block-label.php:64
    120126#: includes/class-wdevs-tax-switch-block-label.php:82
    121 #: includes/class-wdevs-tax-switch-compatibility.php:340
    122127#: includes/class-wdevs-tax-switch-woocommerce.php:253
    123 #: public/class-wdevs-tax-switch-public.php:150
     128#: includes/trait-wdevs-tax-switch-helper.php:458
    124129msgid "Incl. VAT"
    125130msgstr ""
    126131
    127 #: admin/partials/section-wdevs-tax-switch-shortcode.php:146
    128 #: block/src/label/edit.js:71 block/src/switch/edit.js:173
     132#: admin/partials/section-wdevs-tax-switch-shortcode.php:147
     133#: block/src/label/edit.js:71 block/src/switch/edit.js:174
    129134msgid "Excluding VAT label"
    130135msgstr ""
    131136
    132 #: admin/partials/section-wdevs-tax-switch-shortcode.php:150
     137#: admin/partials/section-wdevs-tax-switch-shortcode.php:151
     138#: block/src/switch/components/SwitchComponent.js:191
    133139#: includes/class-wdevs-tax-switch-block-label.php:65
    134140#: includes/class-wdevs-tax-switch-block-label.php:83
    135 #: includes/class-wdevs-tax-switch-compatibility.php:341
    136141#: includes/class-wdevs-tax-switch-woocommerce.php:260
    137 #: public/class-wdevs-tax-switch-public.php:151
     142#: includes/trait-wdevs-tax-switch-helper.php:461
    138143msgid "Excl. VAT"
    139144msgstr ""
    140145
    141 #: admin/partials/section-wdevs-tax-switch-shortcode.php:156
     146#: admin/partials/section-wdevs-tax-switch-shortcode.php:157
    142147msgid "CSS classes"
    143148msgstr ""
    144149
    145 #: admin/partials/section-wdevs-tax-switch-shortcode.php:161
    146 msgid "Options: is-style-default, is-style-inline or/and custom classes"
    147 msgstr ""
    148 
    149 #: admin/partials/section-wdevs-tax-switch-shortcode.php:172
     150#: admin/partials/section-wdevs-tax-switch-shortcode.php:162
     151msgid ""
     152"Options: is-style-default, is-style-inline, is-style-flat-pill or/and "
     153"custom classes"
     154msgstr ""
     155
     156#: admin/partials/section-wdevs-tax-switch-shortcode.php:173
    150157msgid "Preview"
    151158msgstr ""
    152159
    153 #: admin/partials/section-wdevs-tax-switch-shortcode.php:176
     160#: admin/partials/section-wdevs-tax-switch-shortcode.php:177
    154161msgid "This is a preview. The actual style depends on your theme."
    155162msgstr ""
    156163
    157 #: admin/partials/section-wdevs-tax-switch-shortcode.php:182
     164#: admin/partials/section-wdevs-tax-switch-shortcode.php:183
    158165msgid "Generate shortcode"
    159166msgstr ""
    160167
    161 #: admin/partials/section-wdevs-tax-switch-shortcode.php:201
     168#: admin/partials/section-wdevs-tax-switch-shortcode.php:202
    162169msgid "Copied"
    163170msgstr ""
     
    179186msgstr ""
    180187
    181 #: block/src/switch/edit.js:60
     188#: block/src/switch/components/SwitchComponent.js:109
     189msgid "Switch between prices including and excluding VAT"
     190msgstr ""
     191
     192#: block/src/switch/edit.js:61
    182193msgid "Display options"
    183194msgstr ""
    184195
    185 #: block/src/switch/edit.js:94
     196#: block/src/switch/edit.js:95
    186197msgid "Switch colors"
    187198msgstr ""
    188199
    189 #: block/src/switch/edit.js:156
     200#: block/src/switch/edit.js:157
    190201msgid "Switch labels"
     202msgstr ""
     203
     204#: block/src/switch/edit.js:184
     205msgid "Switch aria label"
    191206msgstr ""
    192207
  • tax-switch-for-woocommerce/trunk/public/class-wdevs-tax-switch-public.php

    r3447052 r3460537  
    9696        }
    9797
    98         if ( $this->should_skip_next_price_wrap() ) {
     98        $context = [
     99            'return'             => $return,
     100            'price'              => $price,
     101            'args'               => $args,
     102            'unformatted_price'  => $unformatted_price,
     103            'original_price'     => $original_price,
     104        ];
     105
     106        if ( $this->should_skip_next_price_wrap( $context ) ) {
    99107            return $return;
    100108        }
     
    260268     * @since 1.6.5
    261269     */
    262     public function should_skip_next_price_wrap() {
    263         if ( $this->skip_next_wc_price_wrap ) {
     270    public function should_skip_next_price_wrap( array $context = [] ) {
     271        $skip = $this->skip_next_wc_price_wrap;
     272
     273        /**
     274         * Allow third-party code to skip the next wc_price() call.
     275         *
     276         * @since 1.6.9
     277         *
     278         * @param bool                   $skip    Whether to bypass this filter.
     279         * @param array                  $context Context passed from wrap_wc_price().
     280         * @param Wdevs_Tax_Switch_Public $public  Current public class instance.
     281         */
     282        $skip = (bool) apply_filters( 'wdevs_tax_switch_skip_next_price_wrap', $skip, $context, $this );
     283
     284        if ( $skip ) {
    264285            $this->skip_next_wc_price_wrap = false;
    265286            return true;
     
    269290    }
    270291
     292    /**
     293     * TODO consider this to be implemented OR deleted
     294     * This is for <option> elements with prices included.
     295     * $this->loader->add_filter( 'woocommerce_dropdown_variation_attribute_options_html', $plugin_public, 'set_price_texts_for_variation_options', 10, 2 );
     296     *
     297     * @param string $html Current dropdown HTML.
     298     * @param array  $args Arguments passed to the dropdown builder.
     299     * @return string Modified or original HTML.
     300     * @since 1.6.9
     301     */
     302//  public function set_price_texts_for_variation_options( $html, $args ) {
     303//      if ( empty( $html ) ) {
     304//          return $html;
     305//      }
     306//
     307//      $price_html = wc_price( 10.01 );
     308//      $price_text = wp_strip_all_tags( $price_html );
     309//
     310//      $decimal_separator  = preg_quote( wc_get_price_decimal_separator(), '/' );
     311//      $thousand_separator = preg_quote( wc_get_price_thousand_separator(), '/' );
     312//
     313//      if ( '' === $thousand_separator ) {
     314//          $number_pattern = '\d+(?:' . $decimal_separator . '\d+)?';
     315//      } else {
     316//          $number_pattern = '\d{1,3}(?:' . $thousand_separator . '\d{3})*(?:' . $decimal_separator . '\d+)?';
     317//      }
     318//
     319//      $normalized_price_html = trim( preg_replace( '/\s+/u', ' ', html_entity_decode( $price_html, ENT_QUOTES, 'UTF-8' ) ) );
     320//      $number_matches_html  = [];
     321//      preg_match( '/\d+(?:[.,\s]\d+)*/u', $normalized_price_html, $number_matches_html, PREG_OFFSET_CAPTURE );
     322//      if ( empty( $number_matches_html ) ) {
     323//          $pattern_html = '/' . preg_quote( $normalized_price_html, '/' ) . '/u';
     324//      } else {
     325//          $start_html = $number_matches_html[0][1];
     326//          $end_html   = $start_html + strlen( $number_matches_html[0][0] );
     327//          $pattern_html = '/' . preg_quote( substr( $normalized_price_html, 0, $start_html ), '/' ) . '(' . $number_pattern . ')' . preg_quote( substr( $normalized_price_html, $end_html ), '/' ) . '/u';
     328//      }
     329//
     330//      $normalized_price_text = trim( preg_replace( '/\s+/u', ' ', html_entity_decode( $price_text, ENT_QUOTES, 'UTF-8' ) ) );
     331//      $number_matches_text = [];
     332//      preg_match( '/\d+(?:[.,\s]\d+)*/u', $normalized_price_text, $number_matches_text, PREG_OFFSET_CAPTURE );
     333//      if ( empty( $number_matches_text ) ) {
     334//          $pattern_text = '/' . preg_quote( $normalized_price_text, '/' ) . '/u';
     335//      } else {
     336//          $start_text = $number_matches_text[0][1];
     337//          $end_text   = $start_text + strlen( $number_matches_text[0][0] );
     338//          $pattern_text = '/' . preg_quote( substr( $normalized_price_text, 0, $start_text ), '/' ) . '(' . $number_pattern . ')' . preg_quote( substr( $normalized_price_text, $end_text ), '/' ) . '/u';
     339//      }
     340//
     341//      $option_pattern = '/<option\b([^>]*)>(.*?)<\/option>/is';
     342//      if ( ! preg_match_all( $option_pattern, $html, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE ) ) {
     343//          return $html;
     344//      }
     345//
     346//      $result    = '';
     347//      $last_pos  = 0;
     348//      foreach ( $matches as $match ) {
     349//          $full_match = $match[0][0];
     350//          $start      = $match[0][1];
     351//          $result    .= substr( $html, $last_pos, $start - $last_pos );
     352//
     353//          $attributes = $match[1][0];
     354//          $label_html = $match[2][0];
     355//
     356//          $normalized_option_html = trim( preg_replace( '/\s+/u', ' ', $label_html ) );
     357//          $plain_label            = html_entity_decode( strip_tags( $label_html ), ENT_QUOTES, 'UTF-8' );
     358//          $normalized_option_text = trim( preg_replace( '/\s+/u', ' ', $plain_label ) );
     359//
     360//          $price_matches = [];
     361//          if ( preg_match_all( $pattern_html, $normalized_option_html, $found_html, PREG_OFFSET_CAPTURE ) ) {
     362//              foreach ( $found_html[0] as $found ) {
     363//                  $price_matches[] = [
     364//                      'text'  => $found[0],
     365//                      'start' => $found[1],
     366//                      'end'   => $found[1] + strlen( $found[0] ),
     367//                  ];
     368//              }
     369//          }
     370//
     371//          if ( count( $price_matches ) < 2 && preg_match_all( $pattern_text, $normalized_option_text, $found_text, PREG_OFFSET_CAPTURE ) ) {
     372//              foreach ( $found_text[0] as $found ) {
     373//                  $price_matches[] = [
     374//                      'text'  => $found[0],
     375//                      'start' => $found[1],
     376//                      'end'   => $found[1] + strlen( $found[0] ),
     377//                  ];
     378//              }
     379//          }
     380//
     381//          if ( count( $price_matches ) < 2 ) {
     382//              $result .= $full_match;
     383//              $last_pos = $start + strlen( $full_match );
     384//              continue;
     385//          }
     386//
     387//          $unique = [];
     388//          foreach ( $price_matches as $price_match ) {
     389//              $key = $price_match['start'] . ':' . $price_match['end'];
     390//              if ( ! isset( $unique[ $key ] ) ) {
     391//                  $unique[ $key ] = $price_match;
     392//              }
     393//          }
     394//
     395//          $price_matches = array_values( $unique );
     396//          $starts        = array_column( $price_matches, 'start' );
     397//          array_multisort( $starts, SORT_NUMERIC, $price_matches );
     398//
     399//          if ( count( $price_matches ) < 2 ) {
     400//              $result .= $full_match;
     401//              $last_pos = $start + strlen( $full_match );
     402//              continue;
     403//          }
     404//
     405//          $first  = $price_matches[0];
     406//          $second = $price_matches[1];
     407//
     408//          $between_first_and_second = substr( $normalized_option_text, $first['end'], $second['start'] - $first['end'] );
     409//
     410//          $primary_label   = substr( $normalized_option_text, 0, $second['start'] ) . substr( $normalized_option_text, $second['end'] );
     411//          $alternate_label = substr( $normalized_option_text, 0, $first['start'] ) . $second['text'] . $between_first_and_second . substr( $normalized_option_text, $second['end'] );
     412//
     413//          $primary_label   = trim( preg_replace( '/\s+/u', ' ', $primary_label ) );
     414//          $alternate_label = trim( preg_replace( '/\s+/u', ' ', $alternate_label ) );
     415//
     416//          if ( '' === $primary_label || '' === $alternate_label ) {
     417//              $result .= $full_match;
     418//              $last_pos = $start + strlen( $full_match );
     419//              continue;
     420//          }
     421//
     422//          $data_attributes = sprintf(
     423//              ' data-vat-price-text="%s" data-vat-price-alternate-text="%s"',
     424//              esc_attr( $primary_label ),
     425//              esc_attr( $alternate_label )
     426//          );
     427//
     428//          $result .= sprintf(
     429//              '<option%s%s>%s</option>',
     430//              $attributes ? ' ' . trim( $attributes ) : '',
     431//              $data_attributes,
     432//              esc_html( $primary_label )
     433//          );
     434//
     435//          $last_pos = $start + strlen( $full_match );
     436//      }
     437//
     438//      $result .= substr( $html, $last_pos );
     439//
     440//      return $result;
     441//  }
     442
    271443}
  • tax-switch-for-woocommerce/trunk/wdevs-tax-switch.php

    r3455509 r3460537  
    1717 * Plugin URI:           https://wijnberg.dev
    1818 * Description:          Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.
    19  * Version:              1.6.8
     19 * Version:              1.6.9
    2020 * Author:               Wijnberg Developments
    2121 * Author URI:           https://wijnberg.dev/
     
    4141 * Rename this for your plugin and update it as you release new versions.
    4242 */
    43 define( 'WDEVS_TAX_SWITCH_VERSION', '1.6.8' );
     43define( 'WDEVS_TAX_SWITCH_VERSION', '1.6.9' );
    4444
    4545/**
Note: See TracChangeset for help on using the changeset viewer.