I do create a custom style, but it worked only on english version on Indesign. On polish it didnt work, so I wrote this code to handle two languages.
myCharacterStyle.strikeThroughType = 'Jednolity';
myCharacterStyle.strikeThroughType = 'Solid';
but I would like to know if there is other nicer and language independent way.
I searched jongware reference but couldnt find working solution. There is a StrokeStyle class but doesnt work.
Witamy! What are you trying to get this character style to do?
assign this style to object (found text)
Try the following, this should work on every language version
myCharacterStyle.strikeThroughType = '$ID/Solid'
To find the language-independent string you can use the findKeyStrings method on the application object. For ex:-
That's right. It is in JS Guide in Localization section