Skip to content

Localization support for widget preview #137

@aLemonFox

Description

@aLemonFox

Feature Description

Hi, thanks for all updates so far :)
Wondering if it would be possible to localize the widget name and description to match the users' device locale?

Now everything seems hardcoded:

{
  "expo": {
    "plugins": [
      [
        "voltra",
        {
          "widgets": [
            {
              "id": "weather",
              "displayName": "Weather Widget",
              "description": "Shows current weather conditions",
              "supportedFamilies": ["systemSmall", "systemMedium", "systemLarge"],
              "initialStatePath": "./widgets/weather-initial.tsx"
            }
          ]
        }
      ]
    ]
  }
}

Maybe we could somehow localize the displayname and description here?

Problem Statement

It does not seem possible to localize widget configurations

Proposed Solution

No response

Alternatives Considered

No response

Current Library Version

1.4.0

Implementation

  • I would be willing to submit a pull request for this feature

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions