mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-07 21:50:08 +01:00
17 lines
336 B
C
17 lines
336 B
C
#include "detection/locale/locale.h"
|
|
|
|
#include <locale.h>
|
|
|
|
void ffDetectLocale(FFstrbuf* result)
|
|
{
|
|
ffStrbufAppendS(result, getenv("LC_ALL"));
|
|
if(result->length > 0)
|
|
return;
|
|
|
|
ffStrbufAppendS(result, getenv("LANG"));
|
|
if(result->length > 0)
|
|
return;
|
|
|
|
ffStrbufAppendS(result, setlocale(LC_TIME, NULL));
|
|
}
|