Moves the impl RelativeTime to use Localize directly rather than implicitly copying the interface.
impl RelativeTime
Localize
IRW6JACS3KVVA6HW5SBNBOHOQ2WRBHYGDND3FUWJYKJC7ZMOAVOQC
7U2DXFMPZO4P53AMWYCVXG3EPB7UIAPEY4PDDINX4TTABHD5NGMQC
BFL2Y7GN6NBXXNAUSD4M6T6CIVQ2OLERPE2CAFSLRF377WFFTVCQC
use crate::Localize;
const CANONICAL_LOCALE: LanguageIdentifier = DEFAULT_LOCALE;
}
pub fn localize(&self) -> String {
impl Localize for RelativeTime { const CANONICAL_LOCALE: LanguageIdentifier = DEFAULT_LOCALE; fn message_for_locale(&self, locale: &LanguageIdentifier) -> String {
impl Localize for RelativeTime {
fn message_for_locale(&self, locale: &LanguageIdentifier) -> String {
// Select which formatter to use let locale = DataLocale::from(&Self::CANONICAL_LOCALE);
// Select which formatter to use
let locale = DataLocale::from(&Self::CANONICAL_LOCALE);
let locale = DataLocale::from(locale);
fn localize(&self) -> String { // TODO: select locale based on environment self.message_for_locale(&Self::CANONICAL_LOCALE) }
fn localize(&self) -> String {
// TODO: select locale based on environment
self.message_for_locale(&Self::CANONICAL_LOCALE)