Skip to content

Fallback to the primary locale #135

@pablobfonseca

Description

@pablobfonseca

Hi,

Is there a way to fallback the missing translations to the primary_locale?

Let's say I've the following primary locale:

foo:
  example: "Baz"

When I create a new locale file dynamically, let's say:

bar: {}

I'd like to fallback example from foo locale when it's called in the context of bar

<%= t('.bar.example') %>
# I want this to return "Baz"

Does anybody know if this is possible?

Thanks in advance

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