%{value} is a valid placeholder in i18n-js
complete
Piotr Kardaś
const i18n = new I18n({
en: { greetings: "Hi, %{name}!" },
"pt-BR": { greetings: "Olá, %{name}!" },
});
i18n.t("greetings", { name: "John" });
QA warning in SimpleLocalize:
Possible malformed percentage variable
The translation contains a '%' character not followed by a valid variable format (e.g., %s, %d, %@). Please check for correct variable syntax.
Jakub Pomykała
marked this post as
complete
Hey Piotr Kardaś thanks for reporting this issue. It should be fixed now. It will require to re-run QA checks to make those issue disappear.
i Wesołych Świąt :)