Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JaggerJo authored Oct 11, 2024
1 parent fcd8817 commit 1248423
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ Specify translations files (Embedded Resources, Source Generator)
</ItemGroup>
```

> [!CAUTION]
> You currently have to place your translation (.toml) files and the generated code in a **separate project**. This is because Avalonia also generates
> code using their XAML compiler. In order for the xaml compiler to see your translations you need to put them in a different project. Otherwise you'll get a
> compiler error.

### Translation Files
Translations are loaded from `.toml` files. The invariant file is **special** as it's structure included configuration data.
Language files are identified by `_{lang}.toml` postfix.
Expand Down

0 comments on commit 1248423

Please sign in to comment.