WinUI3Localizer icon indicating copy to clipboard operation
WinUI3Localizer copied to clipboard

Support for Uno Platform

Open MartinZikmund opened this issue 1 year ago • 7 comments

It would be awesome if Uno Platform was also supported

MartinZikmund avatar Oct 21 '24 11:10 MartinZikmund

Hi Martin! Thanks for stopping by!😄

As I posted the other day, at least it seems to work on WinUI and WASM.

https://github.com/user-attachments/assets/203b8a57-2f9b-4501-b035-2b4b3db5c798

Now, for the other platforms I guess I'll need to pick your brain. The location of the "Strings" folder, to be specific.

It could be anywhere as long as the app can access it by a given path when initialized. For example:

App Type "Strings" Folder Location Example
WinUI (Packaged) ApplicationData.Current.LocalFolder
WinUI (Unpackaged) Aside the *.exe file

Where would it be for the other platforms?

AndrewKeepCoding avatar Oct 21 '24 12:10 AndrewKeepCoding

Technically you should be able to use ApplicationData.Current.LocalFolder in all targets, that location is accessible (even via classic System.IO APIs) across all targets

MartinZikmund avatar Oct 22 '24 07:10 MartinZikmund

Then, "Technically", it should work out of the box! 😀 I'll try to confirm it (in a couple of days).

AndrewKeepCoding avatar Oct 22 '24 07:10 AndrewKeepCoding

It does work out of the box for WASDK but not for the other platforms. 😅 I'll take a look other lib (Live Charts maybe?) that supports Uno. Please let me know if you have any recommendation.🙂

AndrewKeepCoding avatar Oct 25 '24 12:10 AndrewKeepCoding

@AndrewKeepCoding you will probably need to add multi-targeting (e.g. multiple target frameworks) - or you can create the library based on the Uno Platform Library project template.

MartinZikmund avatar Oct 25 '24 12:10 MartinZikmund

I meed to create separate projects and packages, right?

AndrewKeepCoding avatar Oct 25 '24 12:10 AndrewKeepCoding

AttachedProperty setter is not called in XAML when named Uid. This happens on:

  • Android
  • WASM
  • Desktop
  • MacOS

It works as expected:

  • on WASDK
  • when the AttachedProperty has other name
  • when the setter is called on C# code

unoplatform/uno#19069

AndrewKeepCoding avatar Dec 13 '24 04:12 AndrewKeepCoding