29 lines
1.3 KiB
C++
29 lines
1.3 KiB
C++
////////////////////////////////////////////////////////////////////////////////
|
|
// (c) Copyright, Ubisoft Entertainment Inc. || Created by Harbour //
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
#pragma once
|
|
#include "ubiservices/core/configs/config.h"
|
|
#include "ubiservices/core/types/string.h"
|
|
|
|
namespace US_NS {;
|
|
|
|
namespace LocalizationHelperPrivate
|
|
{
|
|
/// Returns the locale code from the current platform.
|
|
/// @return The locale code in the form "language-country" (i.e. \c en-CA, \c en-US)
|
|
/// @ps4 There is no such information for the console (per player profile info).
|
|
/// @ps5 There is no such information for the console (per player profile info).
|
|
/// @xone In order this function to be fully accurate, all languages should be set in the game \c appxmanifest.xml file
|
|
/// see https://forums.xboxlive.com/questions/55892/getting-the-language-set-on-the-console-independen.html for more information
|
|
String getPlatformLocaleCode();
|
|
|
|
/// Returns the country code
|
|
/// @ps4 There is no such information for the console (per player profile info).
|
|
/// @ps5 There is no such information for the console (per player profile info).
|
|
String getPlatformCountryCode();
|
|
|
|
/// Check if the provided locale is of a valid format or not
|
|
bool localeIsValid(const String& locale);
|
|
}
|
|
|
|
};
|