Comments (8)
@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.
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.
Let me see what I can do.
from tragedy-looper-generator.
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.
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.
Nice, I will look at that after my holidays.
Thank you
from tragedy-looper-generator.
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.
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)
- Handle case where role requirements cannot be met
- Occasionally breaks while rendering the Mastermind Card HOT 1
- Remove wrap util
- Add README.md
- Can there be multiple incidents of the same type? HOT 1
- Improve accessibility HOT 1
- Include additional difficulty calculations HOT 1
- Support EX gauge
- Assigning incidents might not quite work
- The same character may be the culprit of multiple serial murder incidents
- Fake incidents should choose a completely different incident from the same tragedy set and display that!
- There are a maximum number of 8 days
- There is a hard maximum of 7 loops
- Create mastermind cheat sheet
- Build out a better way of pairing role <-> character <-> incident
- Conditions Victory HOT 2
- Win conditions can be duplicated HOT 1
- Japanese translation
- An incident should always occur on the last day
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tragedy-looper-generator.