If you want to use .resx files instead of resource dictionaries, you can easily do this with static links in XAML.
<Window x:Class="MyApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:res="clr-namespace:MyApp.Resources"> <Button Text="{x:Static res:MainWindow.MyTestKey}"> </Window>
The Resource folder contains MainWindow.resx , MainWindow.de.resx , etc., and each file contains the MyTestKey key with the translation.
modiX
source share