diff --git a/docs/helpers.md b/docs/helpers.md index d3e081c..7d1ad22 100644 --- a/docs/helpers.md +++ b/docs/helpers.md @@ -47,7 +47,6 @@ Path: `Nickvision::Aura::StringHelpers` - Returns: A list of the splits of s on delimiter and casted to type T. - Note: T requires the `StringImplicitlyConstructible` concept defined as: `std::is_constructible_v && std::is_convertible_v`. - Ex: `StringHelpers::split("1,2,3,4", ",")` will return `std::vector{ "1", "2", "3", "4" }`. - - Ex: `StringHelpers::split("1,2,3,4", ",")` will return `std::vector{ 1, 2, 3, 4 }`. - ```cpp std::string replace(std::string s, const std::string& toReplace, const std::string& replace) ``` diff --git a/src/localization/documentation.cpp b/src/localization/documentation.cpp index 84a69df..370ba09 100644 --- a/src/localization/documentation.cpp +++ b/src/localization/documentation.cpp @@ -14,7 +14,7 @@ namespace Nickvision::Aura::Localization } #endif std::string lang{ "C" }; - std::string sysLocale{ StringHelpers::split(boost::locale::util::get_system_locale(), ".")[0] }; //split to remove the .UTF-8 + std::string sysLocale{ StringHelpers::split(boost::locale::util::get_system_locale(), ".")[0] }; //split to remove the .UTF-8 if (!sysLocale.empty() && sysLocale != "C" && sysLocale != "en_US") { /* @@ -36,7 +36,7 @@ namespace Nickvision::Aura::Localization } else { - std::string twoLetter{ StringHelpers::split(sysLocale, "_")[0] }; + std::string twoLetter{ StringHelpers::split(sysLocale, "_")[0] }; for (const std::string& l : langs) { if (l.find(twoLetter) != std::string::npos)