In your example, your TranslateExtension needs to implement a constructor that takes one parameter. Therefore, you just need to pass the value to the constructor like this:
TranslateExtension ext = new TranslateExtension("LocalizedByMarkupExtension");
The parameter can be converted using the appropriate TypeConverter or a special Xaml value converter. But if you just pass strings, then the above should work.
ProvideValue, .