From 4f99cd11e2bc7ba44cdca1f0515ef13602bf5914 Mon Sep 17 00:00:00 2001 From: Steven DUBOIS Date: Fri, 28 Apr 2023 14:00:01 +0200 Subject: [PATCH] Add french locale --- locales/en.lua | 2 +- locales/es.lua | 2 +- locales/fr.lua | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 locales/fr.lua diff --git a/locales/en.lua b/locales/en.lua index 90985b5..87e448f 100644 --- a/locales/en.lua +++ b/locales/en.lua @@ -9,4 +9,4 @@ local Translations = { Lang = Lang or Locale:new({ phrases = Translations, warnOnMissing = true -}) \ No newline at end of file +}) diff --git a/locales/es.lua b/locales/es.lua index 0670249..edb01f8 100644 --- a/locales/es.lua +++ b/locales/es.lua @@ -12,4 +12,4 @@ if GetConvar('qb_locale', 'en') == 'es' then warnOnMissing = true, fallbackLang = Lang, }) -end \ No newline at end of file +end diff --git a/locales/fr.lua b/locales/fr.lua new file mode 100644 index 0000000..3c8d7bd --- /dev/null +++ b/locales/fr.lua @@ -0,0 +1,15 @@ +local Translations = { + ui = { + last_location = "Dernière position", + confirm = "Confirmer", + where_would_you_like_to_start = "Où souhaiteriez-vous commencer?", + } +} + +if GetConvar('qb_locale', 'en') == 'fr' then + Lang = Locale:new({ + phrases = Translations, + warnOnMissing = true, + fallbackLang = Lang, + }) +end