• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Intl Development
2
3## How resources in AppScope, such as images and text, are referenced?
4
5Applicable to: OpenHarmony SDK 3.2.5.5, stage model of API version 9
6
7Resources are referenced in the **$r('app.type.name')** format. Where, **type** indicates the resource type, such as color, string, and media, and **name** indicates the resource name.
8
9## How do I convert the resource type to string?
10
11Applicable to: OpenHarmony SDK3.0, stage model of API version 9
12
13If the resource type is set to **string**, the qualifier directory can be set as **this.context.resourceManager.getStringSync(\\$r('app.string.test').id)** and can be converted synchronously. The **\$r('app.string.test', 2)** mode is not supported. For more usage methods, see [Resource Manager](../reference/apis/js-apis-resource-manager.md#getstringsync9).
14
15## Why should I do if the constants referenced by $ in the form_config.json file does not take effect?
16
17Applicable to: OpenHarmony SDK 3.2.6.5, API9 Stage model
18
19In the **form\_config.json** file, **$** cannot be used to reference constants.
20