Skip to content

Best practise to handle missing interpolation values? #103

Open
@Strajk

Description

@Strajk

As a developer, I would like to know when I forget to provide interpolation values. Do you have some best practice to do that?

Throwing exception is probably too much, but a warning is too little :)

polyglot.extend({
  "hello_name": "Hola, %{name}."
});

polyglot.t("hello_name", {});
=> "Hola, %{name}." // => 💣💥

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