Localisation with App Proxy

Highlighted
Shopify Partner
9 0 1

Hello,

 

Is there any way to use localised URLs with App Proxy?

 

For an instance, a store with multiple active locale will have;

 

https://abc.myshopify.com/products/handle (default)

https://abc.myshopify.com/fr-CA/products/handle (fr-CA)

 

However, for an App Proxy, the same isn't working;

 

https://abc.myshopify.com/tools/my-app (working)

https://abc.myshopify.com/fr-CA/tools/my-app (not working)

 

Is there anyway to render locale specific data within App Proxy liquid files? Currently, request.locale is always returning shop's primary locale within App Proxy.

 

Looking forward to a solution :)

 

Thank you.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
679 89 95

-- Updated Feb 2020 --

Hey @kevin_mittal,

 

Localised URLs now work with app proxies. The language is passed along in the accept-language header.

/es/apps/example -> accept-language: es;q=1.0, en;q=0.5

 

 

0 Likes
Highlighted
New Member
3 0 0

Hi Scotty,

 

I have the same problem with our "custom app" (proxy app).

 

I can confirm I'm receiving the "accept-language"-header,

but this doesn't contain the published languages from our shop.

It looks like it sends the languages from the clients-browser...

 

Published languages in our shop:

English = default, German and French


Received languages header in proxy app:

Chrome: [HTTP_ACCEPT_LANGUAGE] => nl,nl-NL;q=0.9,en;q=0.8,en-US;q=0.7,de;q=0.6,fr;q=0.5,sv;q=0.4,it;q=0.3,lb;q=0.2,da;q=0.1,la;q=0.1,es;q=0.1
IE edge: [HTTP_ACCEPT_LANGUAGE] => nl-NL,nl;q=0.8,en-GB;q=0.5,en;q=0.3

 

A much bigger issue for me is that front-end isn't accepting localised URL's;

So:

- myshop.com/apps/customapp > is working

- myshop.com/de/customapp > isn't working (404)

(I've already re-installed the app, and made sure that "read_locales" and "read_translations" are in the app scopes).

 

Can you please advise?

0 Likes
Highlighted
New Member
3 0 0

In my question above I made one mistake in the explanation...

And to be sure the problem is clear;

 

- myshop.com/apps/customapp > is working

- myshop.com/de/apps/customapp > isn't working (404)

- myshop.com/nl/apps/customapp > isn't working (404)

- myshop.com/fr/apps/customapp > isn't working (404)

 

So at this moment Shopify doesn't point the localised urls to my proxy app.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
679 89 95

Thanks @jagmelis 

 

We had to roll back the proxy locale fix, a new fix should be deployed soon. Keep you posted.

0 Likes
Highlighted
New Member
3 0 0

 Hi @scottydont ,

 

Thanks for your response.

I hope it will be implemented soon, as the deadline for our multilingual store is April 14th.

0 Likes