Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate assets ID from source key #31

Open
kayneth opened this issue Feb 22, 2018 · 4 comments
Open

Generate assets ID from source key #31

kayneth opened this issue Feb 22, 2018 · 4 comments

Comments

@kayneth
Copy link

kayneth commented Feb 22, 2018

Hi !

First of all, thank you for your work !
Context : Today, i started to install php-translation/symfony-bundle and php-translation/loco-adapter on a project where we, as developers, were doing only french translations with .yml files. But for now, we need to focus on i18n. So, we'll use Loco to have a clean UI for future translators.


I wanted to know if there is a way to get assets ID created from source keys with the API of Loco. I didn't found any info. It works using import form on the UI of Loco but there's no option for the API.

I may have missed something. ^^

image

It looks like this #189

Thank you !

@kayneth
Copy link
Author

kayneth commented Feb 26, 2018

Hi again ! Hope you had a great week-end ! :)

Does anyone have a clue how to make Loco & Symfony work for a i18n website ?
I tried to change the params in Loco::import() method to keep my based source key as Asset's ID but i can't find how to do it. Maybe I'm doing/thinking about it the wrong way :/

@kayneth
Copy link
Author

kayneth commented Feb 26, 2018

Ok, my bad.
I have to import all YAML from Loco website then delete them on local.
Sorry ><

@kayneth kayneth closed this as completed Feb 26, 2018
@Nyholm
Copy link
Member

Nyholm commented Feb 26, 2018

Sorry for not replying. Thank you for reporting the issue and for coming back with a solution. I will open this as a reminder to add it to the docs.
(Feel free to open a PR yourself btw)

@Nyholm Nyholm reopened this Feb 26, 2018
@kayneth
Copy link
Author

kayneth commented Feb 26, 2018

Hi !
I just didn't really understand what you meant there.
" You should basically import what you got to Loco".

I'll make a PR to add this procedure to the doc (tonight, after work 😄 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants