summaryrefslogtreecommitdiff
path: root/src/doc.rs
diff options
context:
space:
mode:
authorMateus Felipe C. C. Pinto <mateusfccp@gmail.com>2023-04-03 07:59:13 -0300
committerGitHub <noreply@github.com>2023-04-03 12:59:13 +0200
commit2dbbeaeb600e6c9ef6bbecfd67903f091ace9956 (patch)
treebfbeb17c7c9c9476a0f1eaed1d92ca5909d168ae /src/doc.rs
parent37eededc9d9a5ff1c0d5ccdd7a348268cfd40735 (diff)
Provide support for portuguese language (#525)
Diffstat (limited to 'src/doc.rs')
-rw-r--r--src/doc.rs5
1 files changed, 3 insertions, 2 deletions
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 {