form-localizer

0.0.13 • Public • Published

SHOPIFY FORM LOCALIZER.

Created by Jesus Uzcategui (jesusuzcategui.me)

This package allows you to use a selector of available languages ​​for your Shopify store. Take into account that this uses the native functionality of Shopify for the localization of the store, in this case we must use the translate and adapt application.

Usage

  1. First install package:
npm i --save form-localizer
  1. Render snippet where you want, for example header:
{% render "form-localizer" %}
  1. Init javascript to registre the webcomponent.
//Import main functionality
import { initializeFormLocalizer } from 'form-localizer';
//Execute code.
initializeFormLocalizer()
  1. If you follow the steps, automatilly you can test the select language.

Suggestions

If you want change style, you should set styles on the css package.

If you want change HTML, you should change the file snippets/form-localizer.liquid the which was installed on install this package.

Package Sidebar

Install

npm i form-localizer

Weekly Downloads

0

Version

0.0.13

License

ISC

Unpacked Size

6.69 kB

Total Files

7

Last publish

Collaborators

  • uzcateguijesusdev