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

Support "even flatter" format #85

Closed
Naatan opened this issue Jan 18, 2018 · 5 comments · Fixed by #92
Closed

Support "even flatter" format #85

Naatan opened this issue Jan 18, 2018 · 5 comments · Fixed by #92
Assignees
Milestone

Comments

@Naatan
Copy link

Naatan commented Jan 18, 2018

I'd love to be able to just write

program_greeting:  "Hello world"

instead of

program_greeting:
  other: "Hello world"

While I understand the use case of the latter, couldn't it just support a direct string value and default to the "other" mechanic?

@meskio
Copy link

meskio commented Feb 13, 2018

I think this will be needed to have support for sites like transifex.com: https://docs.transifex.com/formats/json

@nicksnyder nicksnyder added this to the v2 milestone Feb 14, 2018
@nicksnyder
Copy link
Owner

I agree that this would be good to support.

@nicksnyder
Copy link
Owner

nicksnyder commented Apr 10, 2018

V2 contains a proposal to fix this. See #92, more specificially https://sourcegraph.com/github.com/nicksnyder/go-i18n@v2-beta/-/blob/i18n/example_test.go#L11:6

@nicksnyder nicksnyder mentioned this issue Apr 10, 2018
Merged
4 tasks
@nicksnyder nicksnyder self-assigned this Apr 10, 2018
@Naatan
Copy link
Author

Naatan commented Apr 10, 2018

Awesome, looking forward to V2.

@nicksnyder
Copy link
Owner

I just tagged 2.0.0.beta.1. Please start using it and report any issues that you have.

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

Successfully merging a pull request may close this issue.

3 participants