Localization
Finqu themes support multiple storefront and designer languages through JSON files in locales/, inline localization objects in schemas, and locale-keyed preset maps.
Storefront translations
Create one JSON file in locales/ for each storefront language your theme supports:
locales/
en.json
fi.json
sv.jsonReference translation keys in Liquid templates with the t filter:
{{ 'general.add_to_cart' | t }}Store keys as nested objects in the locale file:
{
"general": {
"add_to_cart": "Add to cart"
}
}Finqu selects the active language from the storefront request locale (request.locale).
Schema translations
Translate section, block, and setting labels shown in the theme designer separately from storefront copy by adding {lang}.schema.json files in locales/:
locales/
en.json
en.schema.json
fi.json
fi.schema.jsonAt runtime, Finqu merges schema translations into the matching locale. You do not need to duplicate designer labels in {lang}.json unless storefront templates also render those strings.
Translation keys (t:)
In section schemas, block schemas, config/settings_schema.json, and config/settings_data.json, reference keys from {lang}.schema.json with a t: prefix:
{
"type": "checkbox",
"id": "showPromotion",
"label": "t:blocks.product-title-price.settings.showPromotion.label"
}The dot-separated path after t: resolves against nested objects in {lang}.schema.json:
{
"blocks": {
"product-title-price": {
"settings": {
"showPromotion": {
"label": "Näytä tarjous"
}
}
}
}
}Rules for t: keys:
- Store translations as nested JSON objects, not flat dotted keys such as
"blocks.foo.label". - Paths are case-sensitive (
product-templateandPRODUCT-TEMPLATEare distinct keys). - If a key is missing in the active language, Finqu falls back to
en.schema.json. - On the storefront,
t:values resolve when Liquid reads setting values. - In the theme designer,
t:values resolve when schemas and presets load for the active preview language.
Inline localization objects
For smaller schemas, you can also provide translations inline as language-keyed objects:
{% schema %}
{
"name": {
"en": "Hero banner",
"fi": "Hero-banneri"
},
"settings": [
{
"type": "text",
"id": "heading",
"label": {
"en": "Heading",
"fi": "Otsikko"
}
}
]
}
{% endschema %}You can mix both formats in the same theme.
Designer translation scope
The theme designer resolves schema translations for the active preview language chosen in the designer toolbar. Switching the preview language reloads section, block, setting, and preset labels in that language.
Presets
Presets ship default configurations for themes, sections, and blocks. To tailor default content per market, define full preset snapshots per locale instead of translating labels alone.
Finqu resolves presets for the active language:
- On the storefront, Finqu uses the customer’s active locale (
request.locale). - In the theme designer, Finqu uses the active preview language from the designer toolbar.
Resolution checks the active locale first, then default, and finally the first available entry. Preset settings can include rich text, images, block instances, and layout values, and string values inside presets can also use t: keys.
Locale-keyed preset maps
Group preset variants by locale code with a default fallback:
"presets": {
"fi": [
{
"name": "t:sections.hero.presets.default.name",
"settings": {
"heading": "Tervetuloa",
"body": "<p>Suomenkielinen rich text -sisältö</p>"
}
}
],
"default": [
{
"name": "Default hero",
"settings": {
"heading": "Welcome",
"body": "<p>English rich text content</p>"
}
}
]
}When the active locale is fi, Finqu applies the fi preset. Other locales fall back to default.
When one configuration fits every language, use a flat array instead:
"presets": [
{
"name": "t:sections.two-columns.presets.columns-2.name",
"settings": {
"left_column_width": 50,
"right_column_width": 50
}
}
]Theme-level presets
Store-wide theme style variants live in config/settings_data.json. Each preset entry can include locale-specific snapshots alongside default:
{
"presets": {
"minimal": {
"id": "minimal",
"name": "t:presets.minimal.name",
"default": {
"settings": {},
"templates": {},
"sections": []
},
"fi": {
"settings": {},
"templates": {},
"sections": []
}
}
}
}When a merchant previews or applies a theme preset, Finqu loads the snapshot matching the active locale. Preset names resolve through t: keys (from {lang}.schema.json) or inline { "en": "...", "fi": "..." } objects:
{
"presets": {
"minimal": {
"name": "Minimalistinen"
}
}
}Section and block schema presets
Section and block schemas use locale-keyed preset maps to ship market-specific copy, rich text, images, and layout values together:
{% schema %}
{
"name": "t:sections.footer.name",
"presets": {
"fi": [
{
"settings": {
"heading": "Ota yhteyttä",
"body": "<p>Suomenkielinen sisältö</p>"
}
}
],
"default": [
{
"settings": {
"heading": "Contact us",
"body": "<p>English content</p>"
}
}
]
}
}
{% endschema %}When a merchant adds the section or block, the designer applies the preset matching the current preview language.
To offer multiple layout variants per locale, add multiple objects to each locale’s array:
"presets": {
"default": [
{
"name": "Columns 2",
"settings": { "left_column_width": 50 }
},
{
"name": "Columns 3",
"settings": { "left_column_width": 33 }
}
],
"fi": [
{
"name": "Sarakkeet 2",
"settings": { "left_column_width": 50 }
},
{
"name": "Sarakkeet 3",
"settings": { "left_column_width": 33 }
}
]
}Setting-level presets
style-editor and style-picker settings can wrap their style presets by locale:
{
"type": "style-editor",
"id": "buttons",
"presets": {
"fi": {
"primary": {
"name": "t:settings.buttons.presets.primary.name",
"default": {
"border_radius": 0
}
}
},
"default": {
"primary": {
"name": "Primary",
"default": {
"border_radius": 4
}
}
}
}
}When style values do not vary by market, use a single ID-keyed map:
{
"type": "style-editor",
"id": "buttons",
"presets": {
"primary": {
"name": "t:settings.buttons.presets.primary.name",
"default": {}
}
}
}Example locales/fi.schema.json
{
"sections": {
"hero": {
"name": "Hero-banneri",
"settings": {
"heading": {
"label": "Otsikko"
}
}
},
"product-template": {
"name": "Tuotesivu"
}
},
"blocks": {
"product-page-title": {
"name": "Tuotteen otsikko",
"settings": {
"showVendor": {
"label": "Näytä valmistaja"
}
}
}
},
"presets": {
"minimal": {
"name": "Minimalistinen"
}
}
}Referenced from schemas as:
"name": "t:sections.hero.name""label": "t:blocks.product-page-title.settings.showVendor.label""name": "t:presets.minimal.name"
Localization guidelines
- Keep storefront strings in
{lang}.jsonand designer labels in{lang}.schema.jsonor inline schema objects. - Match locale filenames to the store’s enabled language codes (such as
en,fi, andsv), and ship a file for every language your theme supports. - Keep
t:key paths stable by using preset slugs and setting IDs rather than array indexes. - Test schema translations by switching the preview language picker in the theme designer, not just the merchant admin UI language.
- Test storefront translations with the store locale switcher or
localizationform on a deployed store.