Giter Site home page Giter Site logo

Comments (8)

alephtwo avatar alephtwo commented on June 15, 2024

@VikLeroy Sorry for the delayed response!

Localization is something I'd definitely like to offer. The issue of course is going to be getting all of the source data, and also keeping the bundle size to a reasonable one (dynamically importing the text files, maybe). Let me see if there are some things I can do to make this easier for people to contribute - it would definitely make sense to have someone who has knowledge of the localized text available in the game to contribute those words to the project. Or if you have any ideas as to how to update the project to better support localization, I am open to any and all suggestions you might have.

More soon!

from tragedy-looper-generator.

VikLeroy avatar VikLeroy commented on June 15, 2024

I don't know how it's possible to do with your language.

If I take your example, you just have to change the name and the effect, so having a pointer in a file (XML?) to make your changes

murder: {
id: '4b50bb64-da08-448b-81ad-ad7765cf0e7d',
name: 'Murder',
effect: "One (1) other character in culprit's location dies.",
loopEstimate: 0,

==>

murder: {
id: '4b50bb64-da08-448b-81ad-ad7765cf0e7d',
name: murdername
effect: murdereffect
loopEstimate: 0,

And in your xml file

Murder Meurtre One (1) other character in culprit's location dies. Un (1) autre personnage que le coupable meurt.

etc

And you can add as many languages as you want.

from tragedy-looper-generator.

alephtwo avatar alephtwo commented on June 15, 2024

Let me see what I can do.

from tragedy-looper-generator.

alephtwo avatar alephtwo commented on June 15, 2024

I am taking a look at how to use https://www.i18next.com/ to make this possible. It's going to take a little bit of time to figure out how to integrate it into what is already written but it would definitely make localization far easier to implement across various languages.

from tragedy-looper-generator.

alephtwo avatar alephtwo commented on June 15, 2024

At long, long last, I finally got around to this... over a year later. Sorry for the delay, things have been really busy:
https://github.com/alephtwo/tragedy-looper-generator/blob/main/src/static/locales/en.json

I'm working on adding a language switcher to the UI - but for now it's all set up to allow for full localization of all strings that a user will see. I don't think I missed any, but if I did, please let me know.

@VikLeroy if you're still around and still interested, I'd be happy to accept a fr.json version of that file linked above for French translation!

from tragedy-looper-generator.

VikLeroy avatar VikLeroy commented on June 15, 2024

Nice, I will look at that after my holidays.
Thank you

from tragedy-looper-generator.

alephtwo avatar alephtwo commented on June 15, 2024

There are some translations already available that might be of use:

https://boardgamegeek.com/filepage/147959/recueils-de-tragedies-des-extensions-en-francais

I will probably start a branch and copy over some of the terms and whatnot - I'll update this issue if I do.

from tragedy-looper-generator.

alephtwo avatar alephtwo commented on June 15, 2024

https://github.com/alephtwo/tragedy-looper-generator/tree/i18n-fr
☝️ There's a start - I will probably update it as best I can from the materials available. But as a proof of concept it works great!

from tragedy-looper-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.