是的,arb文件中的资源ID必须以大写字母开头。以下是示例代码:
{ "@@locale": "en", "title": "Welcome", "@title": { "description": "Title for the welcome screen", "placeholders": {} }, "subtitle": "Hello, World!", "@subtitle": { "description": "Subtitle for the welcome screen", "placeholders": {} } }
在此示例中,“title”和“subtitle”是资源ID,并且它们都以小写字母开头。应改为首字母大写,“Title”和“Subtitle”。