diff options
| author | Mateus Felipe C. C. Pinto <mateusfccp@gmail.com> | 2023-04-03 07:59:13 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-03 12:59:13 +0200 |
| commit | 2dbbeaeb600e6c9ef6bbecfd67903f091ace9956 (patch) | |
| tree | bfbeb17c7c9c9476a0f1eaed1d92ca5909d168ae /src | |
| parent | 37eededc9d9a5ff1c0d5ccdd7a348268cfd40735 (diff) | |
Provide support for portuguese language (#525)
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc.rs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 { |
