You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear maintainer:
When I using the following code, I found that the current CultureInfo type only supports CultureNameZhCN and CultureNameEnUS, which makes it impossible for me to obtain the time and date formats of other regions through the GetCellValue method.
After checking the related documentation (ISO/IEC 29500) and source code, it is found that the source code has a complete implementation of langNumFmt for other regions (such as zh-tw, ja-jp), but there is no corresponding function support in the getBuiltInNumFmtCode method.
const (
CultureNameUnknownCultureName=iotaCultureNameEnUSCultureNameZhCN// no more methods like CultureNameZhTW
)
// ...func (f*File) getBuiltInNumFmtCode(numFmtIDint) (string, bool) {
iffmtCode, ok:=builtInNumFmt[numFmtID]; ok {
returnfmtCode, true
}
ifisLangNumFmt(numFmtID) {
iff.options.CultureInfo==CultureNameEnUS {
returnf.langNumFmtFuncEnUS(numFmtID), true
}
iff.options.CultureInfo==CultureNameZhCN {
returnf.langNumFmtFuncZhCN(numFmtID), true
}
// no more methods like langNumFmtFuncZhTW
}
return"", false
}
I know that using CustomNumFmt is also an option, but I would still like to inquire if the maintainer have plans to add support for this part, and I can do that if you are willing.
Thank you for your time and consideration.
The text was updated successfully, but these errors were encountered:
Dear maintainer:
When I using the following code, I found that the current
CultureInfo
type only supportsCultureNameZhCN
andCultureNameEnUS
, which makes it impossible for me to obtain the time and date formats of other regions through theGetCellValue
method.After checking the related documentation (ISO/IEC 29500) and source code, it is found that the source code has a complete implementation of
langNumFmt
for other regions (such as zh-tw, ja-jp), but there is no corresponding function support in thegetBuiltInNumFmtCode
method.I know that using
CustomNumFmt
is also an option, but I would still like to inquire if the maintainer have plans to add support for this part, and I can do that if you are willing.Thank you for your time and consideration.
The text was updated successfully, but these errors were encountered: