[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACPC4E7C4YBGHGKYCYEGFJ":3,"skill-same:01M6ACPC4E7C4YBGHGKYCYEGFJ":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":40,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":7,"updatedAt":43,"install":44,"resources":57},"01M6ACPC4E7C4YBGHGKYCYEGFJ","manage-localization-advanced","本地化高级管理",null,"","apache\u002Fofbiz-plugins","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6ACMJJ1Q4WYATY4GXZ2FAVD",178,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-localization-advanced\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8C664561CFRMXSC8XDFDZKD","语言翻译与本地化","SCENARIO","使用场景",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C66465GSN4VFJAQ1QMA8HD","翻译","PROFESSION","适用职业",[30],"manage localization advanced","2026-11-10 10:12:30",false,"\u003C!--\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements.  See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership.  The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License.  You may obtain a copy of the License at\n\nhttp:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied.  See the License for the\nspecific language governing permissions and limitations\nunder the License.\n-->\n\n---\nname: manage-localization-advanced\ndescription: Manage advanced localization in OFBiz, including date\u002Ftime formatting, currency conversion, and locale-specific data handling beyond simple labels.\n---\n\n# Manage Localization Advanced Skill\n\nThis skill covers localization techniques in OFBiz that go beyond standard UI labels, focusing on data formatting and locale-aware logic.\n\n## Date and Time Localization\n\nUse `UtilDateTime` for date arithmetic and locale-specific date retrieval.\n\n### Pattern: Formatting Dates\n```java\n\u002F\u002F Format date for specific locale and timezone\nString formattedDate = UtilFormatOut.formatDate(myDate, \"yyyy-MM-dd\", locale, timeZone);\n\n\u002F\u002F Format date-time for specific locale and timezone\nString formattedDateTime = UtilFormatOut.formatDateTime(myTimestamp, \"yyyy-MM-dd HH:mm\", locale, timeZone);\n```\n\n### Pattern: Date Arithmetic\n```java\n\u002F\u002F Get start of month for a timestamp\nTimestamp monthStart = UtilDateTime.getMonthStart(nowTimestamp, timeZone, locale);\n\n\u002F\u002F Add days to timestamp\nTimestamp weekLater = UtilDateTime.addDaysToTimestamp(nowTimestamp, 7);\n```\n\n## Currency and Number Formatting\n\nUse `UtilFormatOut` and `UtilNumber` for currency and numeric formatting.\n\n### Pattern: Formatting Currency\n```java\n\u002F\u002F Format currency based on ISO code and locale\nString priceStr = UtilFormatOut.formatCurrency(priceBigDecimal, \"USD\", locale);\n\n\u002F\u002F Format percentage\nString percentStr = UtilFormatOut.formatPercentage(discountDouble);\n```\n\n## UOM (Unit of Measure) System\n\nOFBiz uses the `Uom` and `UomConversion` entities for units of measure and currency conversion.\n\n### Pattern: Currency Conversion\n```java\n\u002F\u002F Convert currency using standard service\nMap\u003CString, Object> results = dispatcher.runSync(\"convertUom\", UtilMisc.toMap(\n    \"uomId\", \"USD\",\n    \"uomIdTo\", \"EUR\",\n    \"originalValue\", priceAmount\n));\nBigDecimal convertedValue = (BigDecimal) results.get(\"convertedValue\");\n```\n\n## Localized Data Storage\n\nFor properties stored in the database (e.g., system settings), use `EntityUtilProperties`.\n\n### Pattern: Localized DB Properties\n```xml\n\u003C!-- In SystemProperty.xml -->\n\u003CSystemProperty systemResourceId=\"general\" systemPropertyId=\"currency.uom.id.default\" systemPropertyValue=\"USD\"\u002F>\n```\n\n```java\n\u002F\u002F Retrieve localized property from DB\nString currencyId = EntityUtilProperties.getPropertyValue(\"general\", \"currency.uom.id.default\", delegator);\n```\n\n## Best Practices\n\n1. **Always Pass Locale\u002FTimeZone**: Never rely on `Locale.getDefault()` or `TimeZone.getDefault()` in multi-user web applications; always use the user's session locale and timezone.\n2. **Use UOM Entities**: Prefer the `Uom` system for dimensions, weights, and currencies rather than hardcoding units.\n3. **Handle GMT**: Use `UtilDateTime.toGmtTimestampString()` for logging or external API integrations that require a standard time representation.\n4. **Prefer UtilFormatOut**: Use the utility classes for formatting to ensure consistency across the application.\n",{},"trunk","6c6c27710443de03e9247605d33a2e2f5bc3d1e2","ai-agent-skills\u002Fmanage-localization-advanced",222,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins","https:\u002F\u002Fofbiz.apache.org\u002F","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-12 22:04:06",{"source":9,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add apache\u002Fofbiz-plugins --skill manage-localization-advanced",{"tool":50,"command":51},"bunx","bunx skills add apache\u002Fofbiz-plugins --skill manage-localization-advanced",{"tool":53,"command":54},"pnpm","pnpm dlx skills add apache\u002Fofbiz-plugins --skill manage-localization-advanced","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-localization-advanced\u002FSKILL.md",true,[58],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"OWNERSHIP","OTHER","其他",28,"https:\u002F\u002Fgithub.com\u002FJetBrains\u002Fintellij-community\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Ftesting\u002FOWNERSHIP",[65,79,91,105,119,133],{"skillNo":66,"name":67,"nameZh":68,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":69,"categories":70,"keywords":77,"publishedAt":31},"01M6ACQSN90YKJZ92MQ52D9R8H","prepush-readiness","推送前就绪检查","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fprepush-readiness\u002FSKILL.md",[71,74],{"categoryNo":72,"categoryName":73,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":75,"categoryName":76,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[78],"prepush readiness",{"skillNo":80,"name":81,"nameZh":82,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":83,"categories":84,"keywords":89,"publishedAt":31},"01M6ACQPR1WRA751V4DXVC3AHF","manage-webapps","Web 应用管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-webapps\u002FSKILL.md",[85,86],{"categoryNo":72,"categoryName":73,"taxonomyType":27,"taxonomyTypeDesc":28},{"categoryNo":87,"categoryName":88,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BWKS60NTYJHFE9FQSXGDKS","低代码应用开发",[90],"manage webapps",{"skillNo":92,"name":93,"nameZh":94,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":95,"categories":96,"keywords":103,"publishedAt":31},"01M6ACQMCX8Z7NY2CE08NCV6ND","manage-themes","主题管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-themes\u002FSKILL.md",[97,100],{"categoryNo":98,"categoryName":99,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQ6TQMKHSMFVQHR2KYAEVN","界面设计师",{"categoryNo":101,"categoryName":102,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[104],"manage themes",{"skillNo":106,"name":107,"nameZh":108,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":109,"categories":110,"keywords":117,"publishedAt":31},"01M6ACQHYN20AFWF6TKK4RGQ8A","manage-tests","测试管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-tests\u002FSKILL.md",[111,114],{"categoryNo":112,"categoryName":113,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":115,"categoryName":116,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[118],"manage tests",{"skillNo":120,"name":121,"nameZh":122,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":123,"categories":124,"keywords":131,"publishedAt":31},"01M6ACQFRMW7R45YD3HRAXPGWF","manage-templates","模板管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-templates\u002FSKILL.md",[125,128],{"categoryNo":126,"categoryName":127,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TK1MPB82068236GSXDE","文档处理",{"categoryNo":129,"categoryName":130,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQ6TPH3VQWKQZXV7EPF8VZ","办公行政人员",[132],"manage templates",{"skillNo":134,"name":135,"nameZh":136,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":137,"categories":138,"keywords":145,"publishedAt":31},"01M6ACQCSSDZQMD8VX2K3WRR93","manage-strategies","策略管理","https:\u002F\u002Fgithub.com\u002Fapache\u002Fofbiz-plugins\u002Fblob\u002Ftrunk\u002Fai-agent-skills\u002Fmanage-strategies\u002FSKILL.md",[139,142],{"categoryNo":140,"categoryName":141,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BTXF8K9DFQC4T4TXVH0NMZ","策略与托管设置管理",{"categoryNo":143,"categoryName":144,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C6RQ852C9AEJFCBGG1YA7S","IT 管理员",[146],"manage strategies"]