Resources are in the string format. You can either use this.context.resourceManager.getStringSync($r('app.string.test').id) for synchronous conversion into strings or use $r('app.string.test', 2) for formatting.
Reference
getStringSync