Skip to content

Commit

Permalink
Fix translations
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Jun 16, 2024
1 parent 8b215a9 commit d96d3b0
Show file tree
Hide file tree
Showing 557 changed files with 6,271 additions and 39,717 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-11]
go-version: ['1.22']
go-version: ['1.21']

steps:
- name: Checkout code
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
vanilla-ts,
plain,
]
go-version: ['1.22']
go-version: ['1.21']
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 0 additions & 2 deletions v2/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ module github.com/wailsapp/wails/v2

go 1.21

toolchain go1.22.0

require (
github.com/Masterminds/semver v1.5.0
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
Expand Down
2 changes: 1 addition & 1 deletion website/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tasks:
aliases: [i]
cmds:
- corepack enable
- corepack prepare pnpm@8.2.0 --activate
- corepack prepare pnpm@8.3.1 --activate
- pnpm install
sources:
- package.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,33 @@
</p>
```

[CFN Tracker](https://github.com/williamsjokvist/cfn-tracker) - Suivez les
matchs en direct de n'importe quel profil Street Fighter 6 ou V CFN. Consultez
[le site Web](https://cfn.williamsjokvist.se/) pour commencer.
[CFN Tracker](https://github.com/williamsjokvist/cfn-tracker) - Track any Street
Fighter 6 or V CFN profile's live matches. Check
[the website](https://cfn.williamsjokvist.se/) to get started.

## Caractéristiques
## Features

- Suivi des matchs en temps réel
- Stockage des journaux de match et des statistiques
- Prise en charge de l'affichage des statistiques en direct sur OBS via la
source du navigateur
- Prise en charge de SF6 et SFV
- Possibilité pour les utilisateurs de créer leurs propres thèmes de navigateur
OBS avec CSS
- Real-time match tracking
- Storing match logs and statistics
- Support for displaying live stats to OBS via Browser Source
- Support for both SF6 and SFV
- Ability for users to create their own OBS Browser themes with CSS

### Technologie majeure utilisée aux côtés de Wails
### Major tech used alongside Wails

- [Tâche](https://github.com/go-task/task) - encapsulation de la CLI Wails pour
rendre les commandes courantes faciles à utiliser
- [React](https://github.com/facebook/react) - choisi pour son riche écosystème
(radix, framer-motion)
- [Bun](https://github.com/oven-sh/bun) - utilisé pour sa résolution rapide des
dépendances et son temps de construction
- [Rod](https://github.com/go-rod/rod) - automatisation du navigateur sans tête
pour les modifications d'authentification et d'interrogation
- [SQLite](https://github.com/mattn/go-sqlite3) - utilisé pour stocker les
correspondances, les sessions et les profils
- [Server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) -
un flux http pour envoyer des mises à jour de suivi aux sources du navigateur
OBS
- [i18next](https://github.com/i18next/) - avec connecteur backend pour servir
les objets de localisation de la couche Go
- [xstate](https://github.com/statelyai/xstate) - machines à états pour le
processus d'authentification et le suivi
- [Task](https://github.com/go-task/task) - wrapping the Wails CLI to make
common commands easy to use
- [React](https://github.com/facebook/react) - chosen for its rich ecosystem
(radix, framer-motion)
- [Bun](https://github.com/oven-sh/bun) - used for its fast dependency
resolution and build-time
- [Rod](https://github.com/go-rod/rod) - headless browser automation for
authentication and polling changes
- [SQLite](https://github.com/mattn/go-sqlite3) - used for storing matches,
sessions and profiles
- [Server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) -
a http stream to send tracking updates to OBS browser sources
- [i18next](https://github.com/i18next/) - with backend connector to serve
localization objects from the Go layer
- [xstate](https://github.com/statelyai/xstate) - state machines for auth
process and tracking
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
</p>
```

[ESP Studio](https://github.com/torabian/esp-studio) - Logiciels multiplateformes, de bureau, cloud et embarqués
pour contrôler les appareils ESP/Arduino et créer des flux de travail et des systèmes de contrôle IOT complexes
[ESP Studio](https://github.com/torabian/esp-studio) - Cross platform, Desktop, Cloud, and Embedded software
for controlling ESP/Arduino devices, and building complex IOT workflows and control systems
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Mchat

```mdx-code-block
<p style={{ "text-align": "center" }}>
<img src={require("@site/static/img/showcase/mchat.gif").default} />
<br />
</p>
```

[Official page](https://marcio199226.github.io/mchat-site/public/) Fully anonymous end2end encrypted chat.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Snippet Expander

```mdx-code-block
<p style={{ "text-align": "center" }}>
<img src={require("@site/static/img/showcase/snippetexpandergui-select-snippet.png").default} />
<br />
Screenshot of Snippet Expander's Select Snippet window
</p>
<p style={{ "text-align": "center" }}>
<img src={require("@site/static/img/showcase/snippetexpandergui-add-snippet.png").default} />
<br />
Screenshot of Snippet Expander's Add Snippet screen
</p>
<p style={{ "text-align": "center" }}>
<img src={require("@site/static/img/showcase/snippetexpandergui-search-and-paste.png").default} />
<br />
Screenshot of Snippet Expander's Search & Paste window
</p>
```

[Snippet Expander](https://snippetexpander.org) is "Your little expandable text snippets helper", for Linux.

Snippet Expander comprises of a GUI application built with Wails for managing snippets and settings, with a Search & Paste window mode for quickly selecting and pasting a snippet.

The Wails based GUI, go-lang CLI and vala-lang auto expander daemon all communicate with a go-lang daemon via D-Bus. The daemon does the majority of the work, managing the database of snippets and common settings, and providing services for expanding and pasting snippets etc.

Check out the [source code](https://git.sr.ht/~ianmjones/snippetexpander/tree/trunk/item/cmd/snippetexpandergui/app.go#L38) to see how the Wails app sends messages from the UI to the backend that are then sent to the daemon, and subscribes to a D-Bus event to monitor changes to snippets via another instance of the app or CLI and show them instantly in the UI via a Wails event.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
</p>
```

The [Tiny RDM](https://redis.tinycraft.cc/) application is an open-source, modern lightweight Redis GUI. It has a beautful UI, intuitive Redis database management, and compatible with Windows, Mac, and Linux. It provides visual key-value data operations, supports various data decoding and viewing options, built-in console for executing commands, slow log queries and more.
L'application [Tiny RDM](https://redis.tinycraft.cc/) est une interface Redis moderne et open-source. Il possède une interface utilisateur magnifique, une gestion de base de données Redis intuitive et compatible avec Windows, Mac et Linux. Il fournit des opérations visuelles de données de clé-valeur, supporte diverses options de décodage et de visualisation des données, possède une console intégrée pour exécuter des commandes, des requêtes de log lentes et plus encore.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Si vous n'êtes pas sûr d'un modèle, inspectez `package.json` et `wails.json`
- [wails-react-template](https://github.com/AlienRecall/wails-react-template) - Un modèle utilisant reactjs
- [wails-react-template](https://github.com/flin7/wails-react-template) - Un modèle minimal pour React qui supporte le développement en direct
- [wails-template-nextjs](https://github.com/LGiki/wails-template-nextjs) - Un modèle utilisant Next.js et TypeScript
- [wails-template-nextjs-app-router](https://github.com/thisisvk-in/wails-template-nextjs-app-router) - A template using Next.js and TypeScript with App router
- [wails-vite-react-ts-tailwind-template](https://github.com/hotafrika/wails-vite-react-ts-tailwind-template) - Un modèle pour React + TypeScript + Vite + TailwindCSS
- [wails-vite-react-ts-tailwind-shadcnui-template](https://github.com/Mahcks/wails-vite-react-tailwind-shadcnui-ts) - Un modèle avec Vite, React, TypeScript, TailwindCSS, et shadcn/ui

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,64 @@ func main() {
}
```

Also you might want to use Enums in your structs and have models for them on frontend. In that case you should create array that will contain all possible enum values, instrument enum type and bind it to the app:

```go {16-18} title="app.go"
type Weekday string

const (
Sunday Weekday = "Sunday"
Monday Weekday = "Monday"
Tuesday Weekday = "Tuesday"
Wednesday Weekday = "Wednesday"
Thursday Weekday = "Thursday"
Friday Weekday = "Friday"
Saturday Weekday = "Saturday"
)

var AllWeekdays = []struct {
Value Weekday
TSName string
}{
{Sunday, "SUNDAY"},
{Monday, "MONDAY"},
{Tuesday, "TUESDAY"},
{Wednesday, "WEDNESDAY"},
{Thursday, "THURSDAY"},
{Friday, "FRIDAY"},
{Saturday, "SATURDAY"},
}
```

In the main application configuration, the `EnumBind` key is where we can tell Wails what we want to bind enums as well:

```go {11-13} title="main.go"
func main() {

app := NewApp()

err := wails.Run(&options.App{
Title: "My App",
Width: 800,
Height: 600,
OnStartup: app.startup,
OnShutdown: app.shutdown,
Bind: []interface{}{
app,
},
EnumBind: []interface{}{
AllWeekdays,
},
})
if err != nil {
log.Fatal(err)
}
}

```

This will add missing enums to your `model.ts` file.

Plus d'informations à sur Binding peuvent être trouvées [ici](../howdoesitwork.mdx#method-binding).

## Menu de l’application
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
# Crossplatform build with Github Actions
# Construction cross-plateforme avec Github Actions

To build a Wails project for all the available platforms, you need to create an application build for each operating system. One effective method to achieve this is by utilizing GitHub Actions.
Pour construire un projet Wails pour toutes les plateformes disponibles, vous devez créer un build de l'application pour chaque système d'exploitation. Une méthode efficace pour y parvenir est d'utiliser GitHub Actions.

An action that facilitates building a Wails app is available at:
Une action qui facilite la création d'une application Wails est disponible sur :
https://github.com/dAppServer/wails-build-action

In case the existing action doesn't fulfill your requirements, you can select only the necessary steps from the source:
Dans le cas où l'action existante ne répond pas à vos exigences, vous ne pouvez sélectionner que les étapes nécessaires à partir de la source :
https://github.com/dAppServer/wails-build-action/blob/main/action.yml

Below is a comprehensive example that demonstrates building an app upon the creation of a new Git tag and subsequently uploading it to the Actions artifacts:
Voici un exemple complet qui démontre la construction d'une application lors de la création d'une nouvelle balise Git et qui la téléversera ensuite sur les artefacts Actions :

```yaml
name: Wails build

on:
push:
tags:
# Match any new tag
# Matche n'importe quel nouveau tag
- '*'

env:
# Necessary for most environments as build failure can occur due to OOM issues
# Nécessaire pour la plupart des environnement, car des soucis de build peuvent arriver à cause de soucis de mémoire
NODE_OPTIONS: "--max-old-space-size=4096"

jobs:
build:
strategy:
# Failure in one platform build won't impact the others
# Afin d'éviter que l'échec du build d'une plateforme n'impacte les autres
fail-fast: false
matrix:
build:
Expand Down Expand Up @@ -57,10 +57,10 @@ jobs:
go-version: '1.20'
```
This example offers opportunities for various enhancements, including:
Cet exemple offre des opportunités pour diverses améliorations, comprenant :
- Caching dependencies
- Code signing
- Uploading to platforms like S3, Supbase, etc.
- Injecting secrets as environment variables
- Utilizing environment variables as build variables (such as version variable extracted from the current Git tag)
- Mise en cache des dépendances
- Signature de code
- Envoi vers des plateformes comme S3, Supbase, etc.
- Injection de secrets en tant que variables d'environnement
- Utiliser des variables d'environnement comme variables de compilation (telles que la variable de version extraite de la balise Git actuelle)
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ For example:
}
```

| Property | Description |
| :---------- | :------------------------------------------------------------------------------------ |
| scheme | Custom Protocol scheme. e.g. myapp |
| description | Windows-only. The description. |
| role | macOS-only. The app’s role with respect to the type. Corresponds to CFBundleTypeRole. |
| Propriété | Description |
| :----------- | :------------------------------------------------------------------------------------------ |
| scheme | Custom Protocol scheme. e.g. myapp |
| description | Windows seulement. La description. |
| role | macOS uniquement. The app’s role with respect to the type. Corresponds to CFBundleTypeRole. |

## Platform Specifics:
## Spécificités par platefome :

### macOS
### MacOS

When you open custom protocol with your app, the system will launch your app and call the `OnUrlOpen` function in your Wails app. Example:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Ressources dynamiques

:::info

This does not work with vite v5.0.0+ and wails v2 due to changes in vite. Changes are planned in v3 to support similar functionality under vite v5.0.0+. If you need this feature, stay with vite v4.0.0+. See [issue 3240](https://github.com/wailsapp/wails/issues/3240) for details

:::

Si vous voulez charger ou générer des ressources pour votre frontend de manière dynamique, vous pouvez y parvenir en utilisant l'option [AssetsHandler](../reference/options#assetshandler). Le AssetsHandler est un générique`http.Handler` qui sera appelé pour toute requête non GET sur le serveur d'assets et pour les requêtes GET qui ne peuvent pas être servies car l'asset n'est pas trouvé.

En installant un AssetsHandler personnalisé, vous pouvez servir vos propres ressources en utilisant un serveur de ressources personnalisé.
Expand Down
Loading

0 comments on commit d96d3b0

Please sign in to comment.