Skip to content

At Localization Project, Arabic doesn't work #25

@uSafi

Description

@uSafi

At Localization Project, at App.axaml.cs you will find this:

public override void OnFrameworkInitializationCompleted()
{
    Assets.Resources.Culture = new CultureInfo("ar-IQ");
   // Or
  // Assets.Resources.Culture = new CultureInfo("ar-SA");
   // ....... the rest of the code

    base.OnFrameworkInitializationCompleted();
    var culture = Assets.Resources.Culture;
}

the resource file 'Resources.ar-IQ.resx' exist and it's simply a copy of the default one 'Resources.resx' I just edited the values.
the last line here 'var culture = Assets.Resources.Culture;' clearly get the Arabic Culture.
But still the binding '' keep giving the default English words from the English Resource file.
Strangely "ja-JP" and "fil-PH" work just fine.
I don't know if it's a AvaloniaUI thing or WPF thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions