{"id":20600744,"url":"https://github.com/maraf/dotnet-wasm-rename-icu","last_synced_at":"2026-06-04T17:31:41.559Z","repository":{"id":182239860,"uuid":"668170506","full_name":"maraf/dotnet-wasm-rename-icu","owner":"maraf","description":"Change extension of ICU files in .NET on WASM app","archived":false,"fork":false,"pushed_at":"2023-10-03T07:39:35.000Z","size":2506,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-17T01:38:30.632Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maraf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-19T07:30:10.000Z","updated_at":"2024-11-01T03:13:25.000Z","dependencies_parsed_at":"2025-01-17T01:36:39.464Z","dependency_job_id":"11bc843c-7886-43a7-bdc4-0b2bb5b69185","html_url":"https://github.com/maraf/dotnet-wasm-rename-icu","commit_stats":null,"previous_names":["maraf/dotnet-wasm-rename-icu"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maraf%2Fdotnet-wasm-rename-icu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maraf%2Fdotnet-wasm-rename-icu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maraf%2Fdotnet-wasm-rename-icu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maraf%2Fdotnet-wasm-rename-icu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maraf","download_url":"https://codeload.github.com/maraf/dotnet-wasm-rename-icu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242240903,"owners_count":20095331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T08:39:14.059Z","updated_at":"2025-03-06T15:45:33.082Z","avatar_url":"https://github.com/maraf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotnet-wasm-rename-icu\n\nChange extension of ICU files in .NET on WASM app\n\n## Live demo\n\n\u003chttps://maraf.github.io/dotnet-wasm-rename-icu/\u003e\n\n## Building source code\n\n- Install .NET 8 SDK (RC1)\n- Install wasm-tools workload `dotnet workload install wasm-tools`\n- Run the project `dotnet run`\n\n## Keep eye on\n\nThe solution consists of two parts\n\n### MSBuild\n\n```xml\n\u003cProject Sdk=\"Microsoft.NET.Sdk\"\u003e\n  \u003cPropertyGroup\u003e\n    ...\n\n    \u003c!-- 👇 New extension for ICU files --\u003e\n    \u003cNewIcuFileExtension\u003e.icu\u003c/NewIcuFileExtension\u003e\n  \u003c/PropertyGroup\u003e\n\n  ...\n\n  \u003c!-- 👇 After the application is build/published --\u003e\n  \u003cTarget Name=\"RenameIcuToAppBundle\" AfterTargets=\"WasmBuildApp;WasmNestedPublishApp\"\u003e\n    \u003cItemGroup\u003e\n      \u003c!-- 👇 Find all ICU files in AppBundle --\u003e\n      \u003cIcuFiles Include=\"$(WasmAppDir)\\**\\*.dat\" /\u003e\n    \u003c/ItemGroup\u003e\n\n    \u003c!-- 👇 Change their extension to 'NewIcuFileExtension' --\u003e\n    \u003cMove SourceFiles=\"@(IcuFiles)\"\n      OverwriteReadOnlyFiles=\"true\"\n      DestinationFiles=\"%(RelativeDir)%(Filename)$(NewIcuFileExtension)\" /\u003e\n  \u003c/Target\u003e\n\u003c/Project\u003e\n```\n\n### Javascript\n\n```js\n... = await dotnet\n    // 👇 Override resource URL resolution\n    .withResourceLoader((type, name, defaultUri, integrity) =\u003e {\n          // 👇 Override extension of ICU files\n          if (type == 'globalization') {\n              defaultUri = defaultUri.replace('.dat', '.icu');\n          }\n\n          return defaultUri;\n      })\n    .create();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaraf%2Fdotnet-wasm-rename-icu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaraf%2Fdotnet-wasm-rename-icu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaraf%2Fdotnet-wasm-rename-icu/lists"}