From 2dbbeaeb600e6c9ef6bbecfd67903f091ace9956 Mon Sep 17 00:00:00 2001 From: "Mateus Felipe C. C. Pinto" Date: Mon, 3 Apr 2023 07:59:13 -0300 Subject: Provide support for portuguese language (#525) --- src/doc.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/doc.rs') diff --git a/src/doc.rs b/src/doc.rs index b3ada72f..c21b095b 100644 --- a/src/doc.rs +++ b/src/doc.rs @@ -517,10 +517,11 @@ pub struct Lang([u8; 3], u8); impl Lang { pub const CHINESE: Self = Self(*b"zh ", 2); pub const ENGLISH: Self = Self(*b"en ", 2); + pub const FRENCH: Self = Self(*b"fr ", 2); pub const GERMAN: Self = Self(*b"de ", 2); - pub const RUSSIAN: Self = Self(*b"ru ", 2); pub const ITALIAN: Self = Self(*b"it ", 2); - pub const FRENCH: Self = Self(*b"fr ", 2); + pub const PORTUGUESE: Self = Self(*b"pt ", 2); + pub const RUSSIAN: Self = Self(*b"ru ", 2); /// Return the language code as an all lowercase string slice. pub fn as_str(&self) -> &str { -- cgit v1.2.3