Giter VIP home page Giter VIP logo

texts_translate's Introduction

Sketch Texts Translate

Sketch Texts Translate demo

Manage texts in Sketch in multiple locales by this plugin.

Installation

Download and double-click sketch_translate file and let Sketch automatically install the plugin.

OR

Install Texts Translate with Sketchpacks

Usage

  • Go to Plugins -> Texts Translation -> Save locale to save current locale.
  • Go to Plugins -> Texts Translation -> Change locale to create new locale or change to an existing one.

Important

You need to have a saved Sketch document before using the plugin. Locales files are saved in same folder ('Sketch document name'+'_translations').

Sketch Texts Translate files

Manually created/edited locales

You can manually create/edit locale files. These files have a very easy structure; "TextLayer objectID" as key and "text content" as value in a JSON file, where file name is the locale name.

You can create a new locale by:

  1. Duplicate existing locale.
  2. Edit TextLayer value.
  3. Save in same folder with "locale name" and same format (JSON).
  4. This locale will be available when "Change locale" action.

Feedback

If you discover any issues or you think this plugin can be improved by new features, create a new issue in this repository or find me on twitter @laresgoiti.

texts_translate's People

Contributors

laresgoiti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

texts_translate's Issues

Overriding symbol text is not translated

Hi

I like your plugin and want to use it for my manual. But I found an issue: When you have some symbols and override the text of that symbol, the overwritten text is not translatable.

I have attached an example sketch file to show you the problem. And also a screenshot: I have a text-field and made a symbol out of it. The symbol has the text “title” (and this is stored in your translation file).
When I add this symbol to a new page and overwrite the text e.g. with “English Title” (as highlighted on the screenshot) this text is not saved. The translated .json file still only shows “title” instead of having a separate translation key for that symbol instance.

Bug.zip
screenshot

Support Sketch 45 plugin update system

Hi there!

This is a quick note to remind you that Sketch 45 will include a plugin update system.

It would be awesome if you could add support to it (it's really easy!) before Sketch 45 comes out. Ideally, you should release an update for your plugin while we're still in Sketch 44, so your users will have a nice & easy experience when 45 is released.

For more details, please check http://sketchplugins.com/d/229-updating-plugins and http://developer.sketchapp.com/introduction/updating-plugins/

Thanks in advance!

crashing

“change locale” crashes Sketch ... no functionality atm ... Sketch v43.1

Besides that a very nice idea and a really needed thing ... I would love to have it in my daily workflow.
thx for fixing and improving!

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.