crowdin / crowdin/mobile-sdk-android
Seems not working with Custom view with custom attributes
- Dominant language
- Kotlin
- Stars
- 130
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Description
I have a custom view and get the text from XML:
The code slice is here:
```
val typedArray = context.obtainStyledAttributes(attrs, R.styleable.CustomView, 0, 0)
tag = typedArray.getText(R.styleable.CustomView_customTag) ?: ""
```
The **tag** does not use the latest translation.
Is it a bug or caused by using the outdated SDK version? Waiting for your response, Thank you!
Contributor guide
Research direction
Start with the custom view XML and the obtainStyledAttributes call shown in the issue, then reproduce the customTag lookup with a translated string. Compare the returned value with the latest translation and determine whether the behavior is caused by the SDK version; done means the latest translation is returned or the version limitation is clearly identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- localization, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100