Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement FileDialogLabels #69

Merged
merged 4 commits into from
Feb 22, 2024
Merged

Implement FileDialogLabels #69

merged 4 commits into from
Feb 22, 2024

Conversation

fluxxcode
Copy link
Owner

@fluxxcode fluxxcode commented Feb 22, 2024

Implemented FileDialogLabels and FileDialog::labels to enable multiple language support.

The following example shows how the default title of the dialog can be displayed in German instead of English.

use egui_file_dialog::{FileDialog, FileDialogLabels};

let labels_german = FileDialogLabels {
    title_select_directory: "📁 Ordner Öffnen".to_string(),
    title_select_file: "📂 Datei Öffnen".to_string(),
    title_save_file: "📥 Datei Speichern".to_string(),
    ..Default::default()
 };

let file_dialog = FileDialog::new().labels(labels_german);

@fluxxcode fluxxcode merged commit bc9582c into develop Feb 22, 2024
1 check passed
@fluxxcode fluxxcode deleted the feat/file_dialog_labels branch February 22, 2024 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant