Skip to content

Is this a bug? #21

@SoulSu

Description

@SoulSu
  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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions