From e6cc7ef606e9115fb27a599f5a8c82934fbe6f87 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Fri, 3 Mar 2023 23:50:48 +0000 Subject: [PATCH] demo project: Use shortened locale names: that way they apply to all variants --- demo_hornbeam_project/src/main.rs | 2 +- demo_hornbeam_project/translations/{en-GB => en}/say_hello.ftl | 0 demo_hornbeam_project/translations/{fr-FR => fr}/say_hello.ftl | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename demo_hornbeam_project/translations/{en-GB => en}/say_hello.ftl (100%) rename demo_hornbeam_project/translations/{fr-FR => fr}/say_hello.ftl (100%) diff --git a/demo_hornbeam_project/src/main.rs b/demo_hornbeam_project/src/main.rs index 9884a74..144cc4e 100644 --- a/demo_hornbeam_project/src/main.rs +++ b/demo_hornbeam_project/src/main.rs @@ -11,7 +11,7 @@ use tracing_subscriber::util::SubscriberInitExt; make_template_manager! { static ref TEMPLATING = { - default_locale: "en-GB", + default_locale: "en", }; } diff --git a/demo_hornbeam_project/translations/en-GB/say_hello.ftl b/demo_hornbeam_project/translations/en/say_hello.ftl similarity index 100% rename from demo_hornbeam_project/translations/en-GB/say_hello.ftl rename to demo_hornbeam_project/translations/en/say_hello.ftl diff --git a/demo_hornbeam_project/translations/fr-FR/say_hello.ftl b/demo_hornbeam_project/translations/fr/say_hello.ftl similarity index 100% rename from demo_hornbeam_project/translations/fr-FR/say_hello.ftl rename to demo_hornbeam_project/translations/fr/say_hello.ftl