feat(i18n): localize Avalonia view strings via loc:Tr markup
Extract ~165 hardcoded UI strings across islands, modals, planning and
shell views into en.json; replace with {loc:Tr} bindings.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:vm="using:ClaudeDo.Ui.ViewModels.Islands"
|
||||
xmlns:loc="using:ClaudeDo.Ui.Localization"
|
||||
x:Class="ClaudeDo.Ui.Views.Islands.SessionTerminalView"
|
||||
x:DataType="vm:DetailsIslandViewModel">
|
||||
<Border Classes="terminal" Margin="18,8,18,0">
|
||||
@@ -24,7 +25,7 @@
|
||||
Margin="0,0,8,0" VerticalAlignment="Center">
|
||||
<StackPanel Orientation="Horizontal" Spacing="5" VerticalAlignment="Center">
|
||||
<Ellipse VerticalAlignment="Center"/>
|
||||
<TextBlock Text="LIVE" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="{loc:Tr session.chipLive}" VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
<!-- DONE chip -->
|
||||
@@ -33,7 +34,7 @@
|
||||
Margin="0,0,8,0" VerticalAlignment="Center">
|
||||
<StackPanel Orientation="Horizontal" Spacing="5" VerticalAlignment="Center">
|
||||
<Ellipse VerticalAlignment="Center" Fill="{DynamicResource MossBrush}"/>
|
||||
<TextBlock Text="DONE" VerticalAlignment="Center"
|
||||
<TextBlock Text="{loc:Tr session.chipDone}" VerticalAlignment="Center"
|
||||
Foreground="{DynamicResource MossBrush}"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
@@ -43,7 +44,7 @@
|
||||
Margin="0,0,8,0" VerticalAlignment="Center">
|
||||
<StackPanel Orientation="Horizontal" Spacing="5" VerticalAlignment="Center">
|
||||
<Ellipse VerticalAlignment="Center" Fill="{DynamicResource BloodBrush}"/>
|
||||
<TextBlock Text="FAILED" VerticalAlignment="Center"
|
||||
<TextBlock Text="{loc:Tr session.chipFailed}" VerticalAlignment="Center"
|
||||
Foreground="{DynamicResource BloodBrush}"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
Reference in New Issue
Block a user