Git Product home page Git Product logo

Comments (3)

iafan avatar iafan commented on August 16, 2024

@zhukic most likely the way your .po files are generated is not what Smartcat sync plugin would expect. A canonical way of generating .po files for Smartcat plugin is this:

ts_file_path                            <root_folder_with_project_ts_files>/%LANG%/%FILE%.po

I.e. you have per-language folders, and inside you have just original file names with appended '.po' extension.

Here's how it's set up in Serge+Smartcat bootstrap project that I'd recommend using as a base:
https://github.com/smartcatai/smartcat-serge-bootstrap/blob/master/configs/project-a.serge#L51

Also, make sure that in your config you're not selecting your localized resource files as source ones. For example, if you have a file called 'screen_details_strings.xml', and set up your config in a way that a file translated into German is named 'screen_details_strings_de.xml', but at the same time you select all files with .xml extension for processing, then, next time Serge runs, it will pick up 'screen_details_strings_de.xml' as another source file, and will try to localize it into German again, producing 'screen_details_strings_de_de.xml'. So check your source_dir, source_match, output_file_path and ts_file_path parameters. Feel free to quote your Serge config here if you're stuck with your setup.

from serge.

iafan avatar iafan commented on August 16, 2024

Closing this issue due to inactivity; hope that the answer above helped you resolve the issue.

from serge.

zhukic avatar zhukic commented on August 16, 2024

I apologize for inactivity.

It seems that Smartcat plugin update helped to resolve the issue.

Thanks!

from serge.

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.