-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from yassun7010/fix_custom_message
Fix custom message
- Loading branch information
Showing
60 changed files
with
1,172 additions
and
811 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
#[cfg(feature = "flatten")] | ||
pub mod flatten; | ||
|
||
#[cfg(feature = "fluent")] | ||
pub mod fluent; | ||
|
||
#[cfg(feature = "json")] | ||
pub mod json; | ||
|
||
#[cfg(feature = "toml")] | ||
pub mod toml; | ||
|
||
#[cfg(feature = "yaml")] | ||
pub mod yaml; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
mod into_localization; | ||
mod error; | ||
mod localize; | ||
mod message; | ||
mod try_localize; | ||
|
||
pub use into_localization::IntoLocalization; | ||
pub use error::LocalizedError; | ||
pub use localize::Localize; | ||
pub use message::Message; | ||
pub use try_localize::TryLocalize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use crate::validation::{ArrayErrors, ObjectErrors}; | ||
|
||
#[derive(Debug, Clone, serde::Serialize)] | ||
#[serde(untagged)] | ||
pub enum LocalizedError { | ||
String(String), | ||
Items(ArrayErrors<LocalizedError>), | ||
Properties(ObjectErrors<LocalizedError>), | ||
} |
Oops, something went wrong.