You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sure, I am currently using i18n-tasks and https://github.com/local-ch/i18n-docs in one project which is quite a hassle (need Google Translate and CSV import/ export). My idea is to write my own i18n-tasks command that does the CSV import/ export things to get rid of i18n-docs. If I am successful, I'll definitely let you know, perhaps it might sense to integrate it or at least to add it to the wiki.
Oh, I didn't thought of a custom adapter since I still want to store the files in YAML. My use case in particular is that I only want to export to CSV from time to time so that an external translator can deal with the translations, and I need a way to import this CSV back into the app. I think a custom task is still the way to go, right?
i18n-tasks chooses the adapter based on the file extension, so you can store files in any or even multiple formats. Most commands accept a format option, e.g.:
$ i18n-tasks data -fjson
Adding an adapter means automatic support for that format with all the commands:
I am still not sure why an adapter might be better, I'll dig into this the next few days. Just to give you a little more background, I am trying to convert something like
I didn't realize you want to use the routing -- the custom tasks are definitely the way to go. Based on this use case, I will refactor a bit the way the adapters work (use actual class, #parse returning a tree instead of a nested hash), so perhaps it's best for you to not implement one just yet.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.