Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Exporting your own multi-lingual profile, overriding defaultLocale #37

Merged
merged 4 commits into from
Dec 7, 2020

Conversation

joshuatz
Copy link
Owner

@joshuatz joshuatz commented Dec 7, 2020

This fixes #35

This ended up being a fairly complicated fix, because I could find no workable way to make the existing profile endpoint return data for a language other than the viewer's default locale (when looking at your own profile). So I had to reconfigure the various extractors and parsers to handle a new endpoint.

This endpoint also nests multi-lingual data, instead of just returning it separately, so I also had to write a utility to recurse through and grab the correct nested data based on the locale that is currently desired for export.

For full details, check the updated docs (which discusses the quirks of LI's multi-lingual system) and the commits on this PR. I'll push a new release after I do some extra cleanup (unrelated to this PR).

 - This is working towards fix for #35, since Dash endpoint seems to
 be only way to get multi-lang export for your own profile
 - Still need to integrate with parseViaInternalApiFullProfile and
 all other applicable methods
 - Tie together alternate Dash endpoint with existing methods
 - Patch extractors that have to be adapted for Dash variation of data
 - Update popup to *always* pass currently selected locale
@joshuatz joshuatz merged commit 0b25a9a into main Dec 7, 2020
@joshuatz joshuatz deleted the dev branch October 31, 2021 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export language feature not working
1 participant