Skip to content

Commit 1ef3e65

Browse files
[nrf toup] Add second locale to DeviceInfoProviderImpl.h
For certification testing it is better to have two locales instead of one. Signed-off-by: Arkadiusz Balys <[email protected]>
1 parent 973e5aa commit 1ef3e65

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/providers/DeviceInfoProviderImpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,15 @@ DeviceInfoProvider::SupportedLocalesIterator * DeviceInfoProviderImpl::IterateSu
170170
size_t DeviceInfoProviderImpl::SupportedLocalesIteratorImpl::Count()
171171
{
172172
// Hardcoded list of locales
173-
// {("en-US")}
173+
// {("en-US", "en-GB" )}
174174

175175
return kNumSupportedLocales;
176176
}
177177

178178
bool DeviceInfoProviderImpl::SupportedLocalesIteratorImpl::Next(CharSpan & output)
179179
{
180180
// Hardcoded list of locales
181-
static const char * kAllSupportedLocales[kNumSupportedLocales] = { "en-US" };
181+
static const char * kAllSupportedLocales[kNumSupportedLocales] = { "en-US", "en-GB" };
182182

183183
VerifyOrReturnError(mIndex < kNumSupportedLocales, false);
184184
output = CharSpan::fromCharString(kAllSupportedLocales[mIndex]);

examples/providers/DeviceInfoProviderImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class DeviceInfoProviderImpl : public DeviceInfoProvider
7777
void Release() override { chip::Platform::Delete(this); }
7878

7979
private:
80-
static constexpr size_t kNumSupportedLocales = 1;
80+
static constexpr size_t kNumSupportedLocales = 2;
8181
size_t mIndex = 0;
8282
};
8383

0 commit comments

Comments
 (0)