fix get cur locale ninja fix