blob: 1affd925d14c579f9cd5c7fd804684bd14fd2bff [file] [log] [blame]
Hsuan Ting Chen3c2cdb62023-05-02 17:55:50 +08001/* SPDX-License-Identifier: GPL-2.0-only */
2
3#ifndef _UX_LOCALES_H_
4#define _UX_LOCALES_H_
5
6#include <types.h>
7
8/* Unmap the preram_locales if it has been mapped. No-op otherwise. */
9void ux_locales_unmap(void);
10
11/*
12 * Get the localized text for a given string name.
13 * This function will try to read the language ID from vboot API, and search the
14 * corresponding translation from CBFS preram_locales.
15 */
16const char *ux_locales_get_text(const char *name);
17
18#endif // _UX_LOCALES_H_