summaryrefslogtreecommitdiff
path: root/src/include/ux_locales.h
blob: 1affd925d14c579f9cd5c7fd804684bd14fd2bff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef _UX_LOCALES_H_
#define _UX_LOCALES_H_

#include <types.h>

/* Unmap the preram_locales if it has been mapped. No-op otherwise. */
void ux_locales_unmap(void);

/*
 * Get the localized text for a given string name.
 * This function will try to read the language ID from vboot API, and search the
 * corresponding translation from CBFS preram_locales.
 */
const char *ux_locales_get_text(const char *name);

#endif  // _UX_LOCALES_H_