Shopify / Shopify/liquid

Dynamic change locale (i18n) setting

Open
#865 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
11.9k
Forks
1.5k
Avg merge
17h 55m
Merged PRs (30d)
3

Description

Hi there,

I'm new to Shopify, after building the basic website, I'd like to add i18n to the site.

There is already an locales folder in the repositories, and we can set the language for the theme in admin panel, that means the language is configurable.

Is there any way to make user change their language? ex. call a javascript function or add parameter is url

I've read #791, and seems the t filter is built by shopify

I found lots of plugins can do multi-lang, but they all need cost per month. If there is some API for developer to change the language, I think it's not difficult to build a multi-lang sites.

Thanks

P.S. this question have already post to Shopify forum

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing locales folder, the theme language setting in the admin panel, and the built-in t filter described in #791. The issue does not identify a Liquid entry point or define acceptance criteria beyond allowing users to change language, so the desired behavior and implementation scope need clarification first.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
internationalization, localization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.