GraphQL Translation Mapping
<% _.each(controls, function (control) { %> <% if(control.type === 'button') { %>
<% } %>
<% if(control.type === 'text') { %> <% } else if(control.type === 'password') { %> "************"<% } else { %> "" <%} %> required> <% } %>
<% if(control.type === 'select') { %> <% } %> <% }); %>
<% if (typeof(model['store_locales']) !== "undefined" ) { %> <% _.each(model['store_locales']['shopLocales'], function(storeLocale) { %> <% console.log((model['storelocaleMapping'])) %> <% if(undefined !== typeof(model['storelocaleMapping']) && model['storelocaleMapping'] && undefined !== typeof(model['storelocaleMapping'][storeLocale.locale]) && model['storelocaleMapping'][storeLocale.locale]) { selectedVal = model['storelocaleMapping'][storeLocale.locale]; } else { selectedVal = null; } %> <% }); %>
<%- _.__('shopify.store.locales') %> <%- _.__('set default') %> <%- _.__('akeneo.enabled.locale') %>
<%- _.__(storeLocale.name) + " [" + storeLocale.locale + "]" %> checked <% } else { %> disabled <% } %>>
<% } else { %>
<%- _.__('Please validate the Token and fetch the published store locales.') %>
<% } %>