addons-linter icon indicating copy to clipboard operation
addons-linter copied to clipboard

Validate placeholders in locales against default locale

Open xPaw opened this issue 5 months ago • 0 comments

For example:

english:

	"app_lowest_price": {
		"message": "SteamDB lowest recorded price is <b>$price$</b>",
		"placeholders": {
			"price": {
				"content": "$1",
				"example": "1,99€"
			}
		}
	},

another locale:

	"app_lowest_price": {
		"message": "Минимальная зафиксированная цена на SteamDB — <b>$price$</b>",
		"placeholders": {
			"price": {
				"content": "$2",
				"example": "1,99€"
			}
		}
	},

I would like this produce a warning because the placeholder in the non default locale uses "$2" instead of "$1".

xPaw avatar Sep 10 '24 13:09 xPaw