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

Is this a bug? #21

Open
SoulSu opened this issue Sep 16, 2019 · 0 comments
Open

Is this a bug? #21

SoulSu opened this issue Sep 16, 2019 · 0 comments

Comments

@SoulSu
Copy link

SoulSu commented Sep 16, 2019

  1. New a UniversalTranslator with nil fallback, that work fine; ut := New(nil)
  2. call ut.AddTranslator to add new translator but t.fallback is nil so will panic. source code
    if t.fallback.Locale() == translator.Locale() {

Whether to add panic handling ?

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

1 participant