feat(01-05): implement TranslationSource singleton + EN/FR resx files
- TranslationSource singleton with INotifyPropertyChanged indexer binding - PropertyChanged fires with string.Empty on culture switch (signals all bindings refresh) - Missing key returns [key] placeholder (prevents null in WPF bindings) - Strings.resx with 27 Phase 1 UI string keys (EN) - Strings.fr.resx with same 27 keys stubbed with EN text (FR completeness Phase 5) - Strings.Designer.cs ResourceManager for dotnet build compatibility - SharepointToolbox.csproj updated with EmbeddedResource metadata
This commit is contained in:
@@ -15,6 +15,16 @@
|
||||
<Page Include="App.xaml" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Update="Localization\Strings.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Strings.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Update="Localization\Strings.fr.resx">
|
||||
<DependentUpon>Strings.resx</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.2" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.0" />
|
||||
|
||||
Reference in New Issue
Block a user