You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any native support in the plugin architecture that tells us which language the user prefers? I couldn't find anything in the documentation, but maybe you guys here have seen something. Since the Steam Plugin provides the NextStep calls with custom html, we have to provide the translations ourselves. We have obtained an early French translation, and I am looking to include it.
If worst comes to worst, i could just put a Language Select dropdown in the top corner with the international codes (i.e. en-US, en-GB, fr-FR, de-DE, etc), and push that information to the persistent cache. Alternatively, i could probably do some js stuff to determine the most likely language based on rough location, but either way i'd prefer to use the language GOG is using.
Edit: I did find an open issue, which was commented on by a contributor here. gogcom/galaxy-integrations-python-api#11
it mentions an Accept-Language header, but i have no clue what that means, frankly. Assuming something POST request related, which unfortunately wouldn't help me.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there any native support in the plugin architecture that tells us which language the user prefers? I couldn't find anything in the documentation, but maybe you guys here have seen something. Since the Steam Plugin provides the NextStep calls with custom html, we have to provide the translations ourselves. We have obtained an early French translation, and I am looking to include it.
If worst comes to worst, i could just put a Language Select dropdown in the top corner with the international codes (i.e. en-US, en-GB, fr-FR, de-DE, etc), and push that information to the persistent cache. Alternatively, i could probably do some js stuff to determine the most likely language based on rough location, but either way i'd prefer to use the language GOG is using.
Edit: I did find an open issue, which was commented on by a contributor here. gogcom/galaxy-integrations-python-api#11
it mentions an
Accept-Language
header, but i have no clue what that means, frankly. Assuming something POST request related, which unfortunately wouldn't help me.Beta Was this translation helpful? Give feedback.
All reactions