Hi @JB27
This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:
The Shopify API provides a way to access the current language for a shop by sending a GET request to the “/admin/shop.json” endpoint. You can retrieve the current language in the response, under the “primary_locale” key. You can use this information to determine the language to display your app in.
Here is an example in Ruby using the shopify_api gem:
require 'shopify_api'
# Connect to the shop
ShopifyAPI::Base.site = "https://#{api_key}:#{password}@#{shop_name}.myshopify.com/admin"
# Get the shop details
shop = ShopifyAPI::Shop.current
# Retrieve the current language
language = shop.primary_locale
If the language is available in your app, you can display the content in that language. If the language is not available, you can default to a different language or a fallback language of your choice.