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

Make objects serializable #23

Closed
1 of 4 tasks
leonelquinteros opened this issue Mar 28, 2018 · 0 comments
Closed
1 of 4 tasks

Make objects serializable #23

leonelquinteros opened this issue Mar 28, 2018 · 0 comments
Labels
v2 Roadmap to v2.0.0

Comments

@leonelquinteros
Copy link
Owner

Please describe your issue

All Translator and Locale objects should be serializable somehow, to allow caching.

Is this a bug, an improvement, a proposal or something else?

  • Bug
  • Improvement
  • Proposal
  • Something else

Briefly explain your issue

Translator and Locale objects can't be cached outside "local memory" because they can't be serialized.

What's the expected behaviour?

A Translator or Locale object should be serializable into []byte

What's the actual behaviour?

They can't.

What are the steps to reproduce the actual behaviour?

Try to serialize and deserialize a Translator or Locale object.

Comments

We either implement a Serialize() method for them, or implement most common serialization interfaces like json and gob.

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

No branches or pull requests

1 participant