Reputation: 39201
We're working on a web based video game: https://colonist.io/
We're interested in internationalizing our product and need advice on how we should handle it. i18next
seemed like a well-designed framework with a lot of plugins that allow for integration with all kinds of different products, but after some research and testing we're finding some difficulties in gettings things to work in a way that is suitable for us.
We use Typescript
across our code base. On the server side, we are using Express
(Node.JS
) to handle APIs and render EJS
templates. On the client side, we're are not using any special library or framework, just vanilla Typescript
, with SASS
for styling and PIXI.js
for game rendering. We use Webpack
for bundling.
We have 3 folders, server
, client
, shared
.
Currently, We have texts in multiple places in the code base:
shared
text file, that can be accessed both from the server
and client
.EJS
templates.server
and client
.Ideally, the system should work so that:
EJS
templates
c. Localize rendering SASS
when needed (if style needs special rule for both LTR and RTL, etc...)Webpack
bundles and away from explicitly requesting resources asynchronously.
c. Caching.GitHub Copilot
/Google Translate
for the majority of the texts.Questions:
Upvotes: 4
Views: 245
Reputation: 21
Upvotes: 2