mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00

For Intl.DurationFormat, we will need to know a locale's hours-minutes time separator, minutes-seconds time separator, and whether the locale prefers digital hours to always display as 2 digits.
21 lines
394 B
C++
21 lines
394 B
C++
/*
|
|
* Copyright (c) 2024, Tim Flynn <trflynn89@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/String.h>
|
|
|
|
namespace Locale {
|
|
|
|
struct DigitalFormat {
|
|
String hours_minutes_separator { ":"_string };
|
|
String minutes_seconds_separator { ":"_string };
|
|
bool uses_two_digit_hours { false };
|
|
};
|
|
|
|
DigitalFormat digital_format(StringView locale);
|
|
|
|
}
|