I added "|lang=fi" to an SVG figure inclusion on the Finnish Wikipedia to select the Finnish figure labels:
https://fi.wikipedia.org/w/index.php?title=Paraabeli&diff=16870921&oldid=16113449
The resulting figure inclusion becomes
[[Tiedosto:Conic Sections.svg|lang=fi|right|thumb|240px|Paraabeli on eräs [[kartioleikkaus|kartioleikkauksista]].]]
Which should be equivalent to the English WP syntax
[[File:Conic Sections.svg|lang=fi|right|thumb|240px|...]]
The image on the fi.Wikipedia displays correctly the Finnish labels. The parabola on the conic section is labeled "Paraabeli", which is the title of the Finnish article.
Looking more closely at the heading of the diff shows:
Versio 2. marraskuuta 2017 kello 18.18 (muokkaa) (kumoa)
Glrx (keskustelu | muokkaukset)
(lang=fi)
(Merkkaus: virheellinen wikikoodi )
Uudempi muutos →
Where the important part is "(Merkkaus: virheellinen wikikoodi)
which translates to "(Markup: invalid wikicode)"
That warning causes other editors to come along and revert the change.
The wikicode works, so I don't see why it should be signaled as invalid.