GithubHelp home page GithubHelp logo

Comments (4)

netbe avatar netbe commented on July 20, 2024

Hi,

I am not sure if this helps but on the test data folder there are some examples like: https://github.com/netbe/Babelish/blob/master/test/data/test_data_multiple_langs.csv
And to generate a .strings file, the command would be:

babelish csv2strings --filename test_data_multiple_langs.csv --langs English:en,German:de, French:fr,Spanish:es

The command should tell you what arguments are required.

Hope that helps!

from babelish.

 avatar commented on July 20, 2024

It indeed helps! I would provide a more complex one, but this helps already.
It would be super if you write about this example in the README :) for other people.
Let me know if you don't have time and I can also do it and create a pull request.

Btw, for someone that lands here:
I could escape rows using the configuration:

  1. In the row I want to escape I write ESCAPE (for example) in the column 0
  2. In your .babelish file I added: state_column: 0
  3. In your .babelish file I added: excluded_states: ["ESCAPE"]

Then, when you run:
babelish csv2strings --filename test_data_multiple_langs.csv --langs English:en,German:de, French:fr,Spanish:es

The parser ignores every line that has ESCAPE in the first column (column=0).

from babelish.

netbe avatar netbe commented on July 20, 2024

@fabioknoedt pull requests are, indeed, very welcome :)

FYI I usually don't use the command arguments but use a config file on project, I don't know if you have seen this section (example file: https://github.com/netbe/Babelish/blob/master/.babelish.sample )

from babelish.

 avatar commented on July 20, 2024

Done. I hope it's alright for you. If not, change anything you would like to.
Thanks man!

from babelish.

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.