Skip to content

Commit

Permalink
Merge pull request #70 from duboiss/main
Browse files Browse the repository at this point in the history
Add french locale
  • Loading branch information
GhzGarage authored Oct 13, 2023
2 parents bd47eaf + 7737151 commit daaca26
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion locales/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ local Translations = {
Lang = Lang or Locale:new({
phrases = Translations,
warnOnMissing = true
})
})
2 changes: 1 addition & 1 deletion locales/es.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ if GetConvar('qb_locale', 'en') == 'es' then
warnOnMissing = true,
fallbackLang = Lang,
})
end
end
15 changes: 15 additions & 0 deletions locales/fr.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit daaca26

Please sign in to comment.