Skip to content

BaseJsonTextsGenerator.ShouldResetTranslation method

Whether a translation of a key is to be reset, as it can not be what the text of the key needs, e.g. one that lost the placeholders of it, which would show a text without them.

protected virtual bool ShouldResetTranslation(string key, string translation, string? text)
parameter description
key The key of the text.
translation The translation that is there.
text The text of the template that it is a translation of.

Return Value

True to reset the translation, so that it is translated again.

See Also