Search code examples
androidkotlinglance-appwidget

How to use plural string resource with glance appWidget?


How to apply my plural string resources in widget? There is no such extension in context.


Solution

  • In case somebody also will need this. Now I managed to get plurals resources through app context like this

    context.applicationContext.resources.getQuantityString(R.plurals.month,
    number, number)
    

    I know this is temp solution, I hope Glance team will continue to develop their product.